From ad3badbdcb3d63abdbff6494bafcf19ea682d44f Mon Sep 17 00:00:00 2001 From: Christian 'ketura' McCarty Date: Sat, 18 Dec 2021 14:33:57 -0600 Subject: [PATCH] Adding comment warning about modifying the serialization function --- .../gempukku/lotro/collection/CollectionSerializer.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/collection/CollectionSerializer.java b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/collection/CollectionSerializer.java index 15b8e0755..404e81897 100644 --- a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/collection/CollectionSerializer.java +++ b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/collection/CollectionSerializer.java @@ -28,6 +28,15 @@ public class CollectionSerializer { } private void fillSingleByteItems() throws IOException { + + /* + + DO NOT add things to the middle of this function. Everything new needs added to the end, even if it + breaks the symmetry of how its sorted. Otherwise the old serialized data will fail to line up with + new serialized data, and it will break existing trophies and collections. + + */ + loadSet("1"); loadSet("2"); loadSet("3");