summaryrefslogtreecommitdiff
path: root/lua/visual.lua
diff options
context:
space:
mode:
authorLNJ <git@lnj.li>2017-04-01 22:41:35 +0200
committerLNJ <git@lnj.li>2017-04-01 22:41:35 +0200
commitcb4af29165644860258c89bca2a4772c1945c18e (patch)
treea1df3bcf878917cc2eb94fcf974196b321245f37 /lua/visual.lua
parent0acdd1a48a4a41f27fde7313951660396e54e39b (diff)
Visual: Fix not resetting self.namev0.2.2
Diffstat (limited to 'lua/visual.lua')
-rwxr-xr-xlua/visual.lua3
1 files changed, 2 insertions, 1 deletions
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