This commit is contained in:
serenibyss
2024-01-03 23:48:58 -06:00
parent 69650e2bef
commit 2054c2afe3
@@ -66,7 +66,7 @@ public class PartIdentityAnnihilationPlane extends PartAnnihilationPlane {
final int unbreaking = getEnchantmentLevel(Enchantments.UNBREAKING, stack); final int unbreaking = getEnchantmentLevel(Enchantments.UNBREAKING, stack);
if (unbreaking > 0) { if (unbreaking > 0) {
int randomNumber = w.rand.nextInt(unbreaking + 1); int randomNumber = w.rand.nextInt(unbreaking + 1);
if (randomNumber == 0) return 0; if (randomNumber > 0) return 0;
} }
// Increase power cost from other enchantments. // Increase power cost from other enchantments.