Visual: Fix not resetting self.name

This commit is contained in:
LNJ 2017-04-01 22:41:35 +02:00
parent 0acdd1a48a
commit cb4af29165
No known key found for this signature in database
GPG Key ID: 69268DBD835B6B0B

@ -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