diff options
author | LNJ <git@lnj.li> | 2017-04-10 17:42:51 +0200 |
---|---|---|
committer | LNJ <git@lnj.li> | 2017-04-10 17:42:51 +0200 |
commit | cb616b0df9e0a07b9e569898c1d3cc265e6c13bf (patch) | |
tree | 1d0d4c2e00dce4bbdf6a22250629e1e474b460ce /lua | |
parent | f36276c225039d3922112b9e8acc44d3f0f2cbf8 (diff) |
Use blank.png instead of own drawers_empty.png
Diffstat (limited to 'lua')
-rwxr-xr-x | lua/helpers.lua | 2 | ||||
-rwxr-xr-x | lua/visual.lua | 6 |
2 files changed, 4 insertions, 4 deletions
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 |