Fix sponge player uuid table corruption

This commit is contained in:
aromaa committed 2024-04-19 19:46:55 +03:00
1 parent d14c89be59
commit 29947f14a7
1 file changed
+1
@@ -416,6 +416,7 @@ public abstract class PrimaryLevelDataMixin implements WorldData, PrimaryLevelDa
final ListTag playerIdList = new ListTag();
data.put(Constants.Sponge.SPONGE_PLAYER_UUID_TABLE, playerIdList);
this.impl$playerUniqueIdMap.values().forEach(uuid -> playerIdList.add(new IntArrayTag(SerializableUUID.uuidToIntArray(uuid))));
this.impl$pendingUniqueIds.forEach(uuid -> playerIdList.add(new IntArrayTag(SerializableUUID.uuidToIntArray(uuid))));
this.impl$pendingUniqueIds.clear();