fix(D-01/C): missing sync + worldgen empty registry race (review)

StruggleSessionManager: add V2EquipmentHelper.sync(player) after bind
resistance update to prevent data loss on server restart during struggle

HangingCagePiece: add fallback ResourceLocation arrays for worldgen when
DataDrivenItemRegistry is empty (race with reload listener on initial
world creation). Registry-first with hardcoded fallbacks.
This commit is contained in:
NotEvil
2026-04-15 00:26:07 +02:00
parent 3d61c9e9e6
commit 3515c89f82
2 changed files with 44 additions and 42 deletions

View File

@@ -647,6 +647,7 @@ public class StruggleSessionManager {
}
if (bindStack.getItem() instanceof IHasResistance resistanceItem) {
resistanceItem.setCurrentResistance(bindStack, session.getCurrentResistance());
V2EquipmentHelper.sync(player);
}
}