Skip to content

Commit

Permalink
make sure the multiblock uuid gets saved to disk when it changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Aug 13, 2024
1 parent 53d3ccf commit d8505ea
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ protected boolean onUpdateServer() {
needsPacket = true;
}
if (multiblock.inventoryID != null) {
UUID oldCachedID = cachedID;
cachedID = multiblock.inventoryID;
if (oldCachedID != cachedID) {
markForSave();
}
if (isMaster()) {
if (multiblock.tick(level)) {
needsPacket = true;
Expand Down

0 comments on commit d8505ea

Please sign in to comment.