mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-22 14:43:45 +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.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"
|
||||||
|
Loading…
Reference in New Issue
Block a user