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.
This commit is contained in:
isaiah658 2018-06-04 07:03:07 -05:00 committed by LNJ
parent 336027fbd7
commit 8cfd1185e3

@ -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