mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-21 22:23:44 +01:00
Fix "Could not load 'drawers_empty.png'"
This commit is contained in:
parent
c97492aedf
commit
899caf5b84
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user