PlayerSync/src/main/java/vip/fubuki/playersync
laforetbrut 2baa8e4c39 Fix RS2: use createCodec() not getMapCodec() - wrong return type
ROOT CAUSE: getMapCodec(Runnable) returns MapCodec (not Codec).
createCodec(Runnable) returns Codec<Map<UUID, SerializableStorage>>.
Reflection on getMapCodec silently failed because the returned
MapCodec.decode() has a different signature than Codec.decode().

Both save fallback and restore codec paths now use createCodec().

RS2 uses ErrorHandlingMapCodec with UUIDUtil.STRING_CODEC for keys,
so the encoded format IS a CompoundTag with UUID strings as keys.

Vyrriox
2026-03-26 20:25:50 +01:00
..
config curios snbt clean 2026-02-23 22:33:13 +08:00
mixin/cobblemon curios snbt clean 2026-02-23 22:33:13 +08:00
sync Fix RS2: use createCodec() not getMapCodec() - wrong return type 2026-03-26 20:25:50 +01:00
util Final audit: fix ghost-online, SQL injection, resource leak, NPE 2026-03-26 18:33:00 +01:00
CommandInit.java supplement 2025-11-28 22:15:29 +08:00
PlayerSync.java Final audit: fix ghost-online, SQL injection, resource leak, NPE 2026-03-26 18:33:00 +01:00