Fix "Could not load 'drawers_empty.png'"

This commit is contained in:
LNJ 2017-04-11 13:31:43 +02:00
parent c97492aedf
commit 899caf5b84
No known key found for this signature in database
GPG Key ID: 69268DBD835B6B0B

@ -65,6 +65,11 @@ core.register_entity("drawers:visual", {
self.texture = data.texture self.texture = data.texture
self.drawerType = data.drawerType or 1 self.drawerType = data.drawerType or 1
self.visualId = data.visualId or "" self.visualId = data.visualId or ""
-- backwards compatibility
if self.texture == "drawers_empty.png" then
self.texture = "blank.png"
end
else else
self.drawer_pos = drawers.last_drawer_pos self.drawer_pos = drawers.last_drawer_pos
self.texture = drawers.last_texture or "blank.png" self.texture = drawers.last_texture or "blank.png"