summaryrefslogtreecommitdiff
path: root/lua/visual.lua
diff options
context:
space:
mode:
authorisaiah658 <isaiah658@outlook.com>2018-06-04 07:03:07 -0500
committerLNJ <git@lnj.li>2018-06-04 14:03:07 +0200
commit8cfd1185e312e749a5ee0e56fd571646f5c8c96a (patch)
treefc7aaced1c53d8d01691531e1c03f49422f4acbe /lua/visual.lua
parent336027fbd76557cde7fc8165200541598eb2b611 (diff)
Fix issue where storage drawer saves item name for items with max stack of 1 (#17)
Fix issue where storage drawer saves item name for items with max stack of 1 causing you to not be able to put in other items until breaking the drawer or reloading the game.
Diffstat (limited to 'lua/visual.lua')
-rwxr-xr-xlua/visual.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/visual.lua b/lua/visual.lua
index ca7db07..99de5b0 100755
--- a/lua/visual.lua
+++ b/lua/visual.lua
@@ -245,6 +245,7 @@ core.register_entity("drawers:visual", {
-- Don't add items stackable only to 1
if self.itemStackMax == 1 then
+ self.itemName = ""
return itemstack
end