From 8cfd1185e312e749a5ee0e56fd571646f5c8c96a Mon Sep 17 00:00:00 2001 From: isaiah658 Date: Mon, 4 Jun 2018 07:03:07 -0500 Subject: 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. --- lua/visual.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua/visual.lua') 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 -- cgit v1.2.3