mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-22 14:43:45 +01:00
Use blank.png instead of own drawers_empty.png
This commit is contained in:
parent
f36276c225
commit
cb616b0df9
@ -40,7 +40,7 @@ function drawers.gen_info_text(basename, count, factor, stack_max)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function drawers.get_inv_image(name)
|
function drawers.get_inv_image(name)
|
||||||
local texture = "drawers_empty.png"
|
local texture = "blank.png"
|
||||||
local def = core.registered_items[name]
|
local def = core.registered_items[name]
|
||||||
if name ~= "air" and def then
|
if name ~= "air" and def then
|
||||||
if def.inventory_image and #def.inventory_image > 0 then
|
if def.inventory_image and #def.inventory_image > 0 then
|
||||||
|
@ -32,7 +32,7 @@ core.register_entity("drawers:visual", {
|
|||||||
collisionbox = {-0.4374, -0.4374, 0, 0.4374, 0.4374, 0}, -- for param2 0, 2
|
collisionbox = {-0.4374, -0.4374, 0, 0.4374, 0.4374, 0}, -- for param2 0, 2
|
||||||
visual = "upright_sprite", -- "wielditem" for items without inv img?
|
visual = "upright_sprite", -- "wielditem" for items without inv img?
|
||||||
visual_size = {x = 0.6, y = 0.6},
|
visual_size = {x = 0.6, y = 0.6},
|
||||||
textures = {"drawers_empty.png"},
|
textures = {"blank.png"},
|
||||||
spritediv = {x = 1, y = 1},
|
spritediv = {x = 1, y = 1},
|
||||||
initial_sprite_basepos = {x = 0, y = 0},
|
initial_sprite_basepos = {x = 0, y = 0},
|
||||||
is_visible = true,
|
is_visible = true,
|
||||||
@ -63,7 +63,7 @@ core.register_entity("drawers:visual", {
|
|||||||
self.visualId = data.visualId or ""
|
self.visualId = data.visualId or ""
|
||||||
else
|
else
|
||||||
self.drawer_pos = drawers.last_drawer_pos
|
self.drawer_pos = drawers.last_drawer_pos
|
||||||
self.texture = drawers.last_texture or "drawers_empty.png"
|
self.texture = drawers.last_texture or "blank.png"
|
||||||
self.visualId = drawers.last_visual_id
|
self.visualId = drawers.last_visual_id
|
||||||
self.drawerType = drawers.last_drawer_type
|
self.drawerType = drawers.last_drawer_type
|
||||||
end
|
end
|
||||||
@ -178,7 +178,7 @@ core.register_entity("drawers:visual", {
|
|||||||
if self.count <= 0 then
|
if self.count <= 0 then
|
||||||
self.itemName = ""
|
self.itemName = ""
|
||||||
meta:set_string("name"..self.visualId, self.itemName)
|
meta:set_string("name"..self.visualId, self.itemName)
|
||||||
self.texture = "drawers_empty.png"
|
self.texture = "blank.png"
|
||||||
itemDescription = "Empty"
|
itemDescription = "Empty"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 74 B |
Loading…
Reference in New Issue
Block a user