Merge pull request #139 from Fugit-5414/fix/Curios-nbtException

Fixes #138
This commit is contained in:
mlus 2025-11-20 23:24:50 +08:00 committed by GitHub
commit 63a21ce5cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,7 +150,7 @@ public class ModsSupport {
for (int i = 0; i < dynStacks.getSlots(); i++) {
ItemStack stack = dynStacks.getStackInSlot(i);
if (!stack.isEmpty()) {
String serialized = VanillaSync.serialize(stack.serializeNBT().toString());
String serialized = VanillaSync.serialize(VanillaSync.serializeNBT(stack).toString());
flatMap.put(slotType + ":" + i, serialized);
}
}