mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-21 22:23:44 +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
|
-- get new stack max
|
||||||
self.itemStackMax = ItemStack(self.itemName):get_stack_max()
|
self.itemStackMax = ItemStack(self.itemName):get_stack_max()
|
||||||
self.maxCount = self.itemStackMax * self.stackMaxFactor
|
self.maxCount = self.itemStackMax * self.stackMaxFactor
|
||||||
|
end
|
||||||
|
|
||||||
-- Don't add items stackable only to 1
|
-- Don't add items stackable only to 1
|
||||||
if self.itemStackMax == 1 then
|
if self.itemStackMax == 1 then
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- set new counts:
|
-- set new counts:
|
||||||
|
Loading…
Reference in New Issue
Block a user