From cb4af29165644860258c89bca2a4772c1945c18e Mon Sep 17 00:00:00 2001 From: LNJ Date: Sat, 1 Apr 2017 22:41:35 +0200 Subject: [PATCH] Visual: Fix not resetting self.name --- lua/visual.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/visual.lua b/lua/visual.lua index 61b02a3..11dcc12 100755 --- a/lua/visual.lua +++ b/lua/visual.lua @@ -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