From 899caf5b847dcc33479618a9836c4ae2d7620f06 Mon Sep 17 00:00:00 2001 From: LNJ Date: Tue, 11 Apr 2017 13:31:43 +0200 Subject: Fix "Could not load 'drawers_empty.png'" --- lua/visual.lua | 5 +++++ 1 file changed, 5 insertions(+) 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" -- cgit v1.2.3