Open
Description
Description
The calculation method of slot capacity in PackagerBlockEntity
class is different when simulate and actually inserting. According to the code in 1.21.1-dev
, in line 401 of PackagerBlockEntity
class, MaxStackSize / 64 * getSlotLimit
is used as the maximum capacity of the slot, while min(getMaxStackSize, getSlotLimit)
is used when calling targetInv.insertItem
. Start from 1.21, the default value of getSlotLimit
is 99, which results in 35 more capacity per slot in simulation, and eventually causes the packager to try to insert too many items into the container.