Use blank.png instead of own drawers_empty.png

This commit is contained in:
LNJ 2017-04-10 17:42:51 +02:00
parent f36276c225
commit cb616b0df9
No known key found for this signature in database
GPG Key ID: 69268DBD835B6B0B
3 changed files with 4 additions and 4 deletions

@ -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