From cb616b0df9e0a07b9e569898c1d3cc265e6c13bf Mon Sep 17 00:00:00 2001 From: LNJ Date: Mon, 10 Apr 2017 17:42:51 +0200 Subject: [PATCH] Use blank.png instead of own drawers_empty.png --- lua/helpers.lua | 2 +- lua/visual.lua | 6 +++--- textures/drawers_empty.png | Bin 74 -> 0 bytes 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 textures/drawers_empty.png diff --git a/lua/helpers.lua b/lua/helpers.lua index 51103d9..12997d1 100755 --- a/lua/helpers.lua +++ b/lua/helpers.lua @@ -40,7 +40,7 @@ function drawers.gen_info_text(basename, count, factor, stack_max) end function drawers.get_inv_image(name) - local texture = "drawers_empty.png" + local texture = "blank.png" local def = core.registered_items[name] if name ~= "air" and def then if def.inventory_image and #def.inventory_image > 0 then diff --git a/lua/visual.lua b/lua/visual.lua index aee4a3b..178b15f 100755 --- a/lua/visual.lua +++ b/lua/visual.lua @@ -32,7 +32,7 @@ core.register_entity("drawers:visual", { 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_size = {x = 0.6, y = 0.6}, - textures = {"drawers_empty.png"}, + textures = {"blank.png"}, spritediv = {x = 1, y = 1}, initial_sprite_basepos = {x = 0, y = 0}, is_visible = true, @@ -63,7 +63,7 @@ core.register_entity("drawers:visual", { self.visualId = data.visualId or "" else 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.drawerType = drawers.last_drawer_type end @@ -178,7 +178,7 @@ core.register_entity("drawers:visual", { if self.count <= 0 then self.itemName = "" meta:set_string("name"..self.visualId, self.itemName) - self.texture = "drawers_empty.png" + self.texture = "blank.png" itemDescription = "Empty" end diff --git a/textures/drawers_empty.png b/textures/drawers_empty.png deleted file mode 100644 index fa95114bd2db130c6671767ab99aba790a21e723..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 74 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`f}SppAr-fh8=3+QxZDnEFfgzP WFfd9m3D*H789ZJ6T-G@yGywqhnhw+e