diff options
Diffstat (limited to 'lua/visual.lua')
-rwxr-xr-x | lua/visual.lua | 5 |
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" |