mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-22 14:43:45 +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
|
end
|
||||||
|
|
||||||
if self.count <= 0 then
|
if self.count <= 0 then
|
||||||
meta:set_string("name", "")
|
self.itemName = ""
|
||||||
|
meta:set_string("name", self.itemName)
|
||||||
self.texture = "drawers_empty.png"
|
self.texture = "drawers_empty.png"
|
||||||
itemDescription = "Empty"
|
itemDescription = "Empty"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user