Skip to content

Commit d8505ea

Browse files
committed
make sure the multiblock uuid gets saved to disk when it changes
1 parent 53d3ccf commit d8505ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/mekanism/common/tile/prefab/TileEntityMultiblock.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ protected boolean onUpdateServer() {
125125
needsPacket = true;
126126
}
127127
if (multiblock.inventoryID != null) {
128+
UUID oldCachedID = cachedID;
128129
cachedID = multiblock.inventoryID;
130+
if (oldCachedID != cachedID) {
131+
markForSave();
132+
}
129133
if (isMaster()) {
130134
if (multiblock.tick(level)) {
131135
needsPacket = true;

0 commit comments

Comments
 (0)