mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-12-22 20:42:22 +01:00
Fix stack_max=1 items are being stored
This commit is contained in:
parent
6f801da548
commit
f83177346b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user