fix: fixed magically unstable items causing crashes when modified, fixes
@@ -668,6 +668,7 @@ public interface IModularItem {
DestabilizationEffect[] possibleEffects =
DestabilizationEffect.getEffectsForImprovement(instability, module.getImprovements(itemStack));
+ if (possibleEffects.length > 0) {
do {
if (destabilizationChance > world.random.nextFloat()) {
DestabilizationEffect effect = possibleEffects[world.random.nextInt(possibleEffects.length)];
@@ -690,7 +691,7 @@ public interface IModularItem {
destabilizationChance--;
} while (destabilizationChance > 1);
}
-
+ }
});
}
}
