From f2e599ef93dd33a7d5032a725a209564a8f0f56b Mon Sep 17 00:00:00 2001 From: "E[T]IL" <81570777+etil2jz@users.noreply.github.com> Date: Sun, 31 Jul 2022 18:48:23 +0200 Subject: [PATCH] Forgot one idMap->idList --- patches/server/0066-lithium-chunk.serialization.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/0066-lithium-chunk.serialization.patch b/patches/server/0066-lithium-chunk.serialization.patch index 870d6dd..bfbfb26 100644 --- a/patches/server/0066-lithium-chunk.serialization.patch +++ b/patches/server/0066-lithium-chunk.serialization.patch @@ -379,7 +379,7 @@ index 7908360dd47937b2cb702e381802b7b278a5198e..f31fd07ce34f798f54d4fae1ccfa2263 + storage.compact(this.data.palette(), compactedPalette, array); + + // If the palette didn't change during compaction, do a simple copy of the data array -+ if (hashPalette != null && hashPalette.getSize() == compactedPalette.getSize() && storage.getBits() == paletteProvider.calculateBitsForSerialization(idMap, hashPalette.getSize())) { // paletteSize can de-sync from palette - see https://github.com/CaffeineMC/lithium-fabric/issues/279 ++ if (hashPalette != null && hashPalette.getSize() == compactedPalette.getSize() && storage.getBits() == paletteProvider.calculateBitsForSerialization(idList, hashPalette.getSize())) { // paletteSize can de-sync from palette - see https://github.com/CaffeineMC/lithium-fabric/issues/279 + data = this.asOptional(storage.getRaw().clone()); + elements = hashPalette.getElements(); + } else {