mojira.dev

Jaime Costas Insua

Assigned

No issues.

Reported

MC-251664 PaletteContainer#copy does not work properly Invalid MC-232943 Tripwire can be seen through blocks next to the world border with Fabulous! graphics Confirmed MC-219083 Hunger client/server desync when natural regeneration is off in peaceful mode Fixed MC-168570 Server resource pack memory leak Duplicate

Comments

This currently does not have an impact on the game because all copies are only used for reading, but if that were to change, worlds could easily get corrupted.

It seems that this issue is caused by entities not being stored with chunks anymore. When entering a hive, the BeehiveBlockEntity#addOccupantWithPresetTicks method first stores the bee and then discards the entity. In 1.16, discarding the entity marks the chunk as unsaved. However, in 1.17, this does not happen. In order to fix the issue, this code needs to also call BlockEntity#setChanged, to ensure that the chunk is saved again so that the entity stored in the beehive is not lost.

TLDR: add this line somewhere inside BeehiveBlockEntity#addOccupantWithPresetTicks to make sure the bees are saved.

this.setChanged();

This is still an issue in 1.15.2. AFAIK, it'd just require another flag. Maybe it could be done for 1.16? This is really annoying for mapmakers.