Skip to content

Chunk Collector Chest not saving properly #313

Description

@Qumoo

Minecraft's Version

1.21.1

This server is running Paper version 1.21-130-master@b1b5d4c (2024-08-10T10:02:42Z) (Implementing API version 1.21-R0.1-SNAPSHOT)
You are running the latest version

Plugin's Version

2026.1 stable freshly downloaded

Describe the bug

After a server restart the chunk collector chest only retains one ItemStack no matter how many were in it before.

To Reproduce

  1. Place ChunkCollector Chest
  2. Drop Items on the Ground & let them be collected
  3. Make sure more than one slot is filled in the chest
  4. Reboot the server
  5. See that only the last filled slot "survived" the reboot

Additional Information

https://github.com/BG-Software-LLC/WildChests/blob/dev/NMS/src/main/templates/AbstractNMSAdapter.java.template#L249
https://github.com/BG-Software-LLC/WildChests/blob/dev/NMS/src/main/templates/AbstractNMSAdapter.java.template#L274

The problem should be here. Newer versions do not have a problem with "loading wrongly tagged numerical values" since all numerical values get saved as Numerical Tags. In older versions (versions < 1.21.5) that was not the case causing the inventory load function to always use the default value of 0, thus overwriting the first slot in the chest over and over again until the loading is finished.

Metadata

Metadata

Assignees

Labels

PendingPending reports to be investigated

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions