Skip to content

When the packager unpacks items, some items will disappear #7612

Open
@donywang922

Description

@donywang922

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.

Image
Image

Game Log

Debug Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: confirmedIssue's details are known, it is consistently reproducible, and it needs a fixtype: bugIssue where something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions