From f83177346bbc5d4c1ad0a8c2cd6a6d5a09b7780f Mon Sep 17 00:00:00 2001 From: LNJ Date: Sun, 23 Apr 2017 18:13:25 +0200 Subject: Fix stack_max=1 items are being stored --- lua/visual.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/visual.lua b/lua/visual.lua index 522e2ab..a92a29b 100755 --- a/lua/visual.lua +++ b/lua/visual.lua @@ -226,11 +226,11 @@ core.register_entity("drawers:visual", { -- get new stack max self.itemStackMax = ItemStack(self.itemName):get_stack_max() self.maxCount = self.itemStackMax * self.stackMaxFactor + end - -- Don't add items stackable only to 1 - if self.itemStackMax == 1 then - return itemstack - end + -- Don't add items stackable only to 1 + if self.itemStackMax == 1 then + return itemstack end -- set new counts: -- cgit v1.2.3