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:
@@ -647,6 +647,7 @@ public class StruggleSessionManager {
|
||||
}
|
||||
if (bindStack.getItem() instanceof IHasResistance resistanceItem) {
|
||||
resistanceItem.setCurrentResistance(bindStack, session.getCurrentResistance());
|
||||
V2EquipmentHelper.sync(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user