summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLNJ <git@lnj.li>2017-04-11 13:31:43 +0200
committerLNJ <git@lnj.li>2017-04-11 13:31:43 +0200
commit899caf5b847dcc33479618a9836c4ae2d7620f06 (patch)
treeb833373d04a10ff2b15d73d01201af423888c7a1
parentc97492aedf32ba1082a3c81fa2ce74474f4dcdf7 (diff)
Fix "Could not load 'drawers_empty.png'"
-rwxr-xr-xlua/visual.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/visual.lua b/lua/visual.lua
index e0e99de..522e2ab 100755
--- a/lua/visual.lua
+++ b/lua/visual.lua
@@ -65,6 +65,11 @@ core.register_entity("drawers:visual", {
self.texture = data.texture
self.drawerType = data.drawerType or 1
self.visualId = data.visualId or ""
+
+ -- backwards compatibility
+ if self.texture == "drawers_empty.png" then
+ self.texture = "blank.png"
+ end
else
self.drawer_pos = drawers.last_drawer_pos
self.texture = drawers.last_texture or "blank.png"