summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to '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