mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-21 22:23:44 +01:00
Visual: Fix not resetting self.name
This commit is contained in:
parent
0acdd1a48a
commit
cb4af29165
@ -138,7 +138,8 @@ core.register_entity("drawers:visual", {
|
||||
end
|
||||
|
||||
if self.count <= 0 then
|
||||
meta:set_string("name", "")
|
||||
self.itemName = ""
|
||||
meta:set_string("name", self.itemName)
|
||||
self.texture = "drawers_empty.png"
|
||||
itemDescription = "Empty"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user