From b53a70c8781f536f15a65068db5da50300bbf876 Mon Sep 17 00:00:00 2001 From: HellionGames Date: Thu, 29 Jun 2023 11:49:01 -0400 Subject: [PATCH] Slightly nerf Dolphin's Grace Fixes #50 --- .../miningmaster/enchantments/GraceEnchantment.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/infernalstudios/miningmaster/enchantments/GraceEnchantment.java b/src/main/java/org/infernalstudios/miningmaster/enchantments/GraceEnchantment.java index f5e64a2..ff6148a 100644 --- a/src/main/java/org/infernalstudios/miningmaster/enchantments/GraceEnchantment.java +++ b/src/main/java/org/infernalstudios/miningmaster/enchantments/GraceEnchantment.java @@ -97,13 +97,11 @@ public static void onLivingUpdate(LivingEvent.LivingUpdateEvent event) { for (int i = 0; i < nbtList.size(); i++) { CompoundTag idTag = nbtList.getCompound(i); if (idTag.getString("id").equals(MMEnchantments.GRACE.getId().toString())) { - if (livingEntity.hasEffect(MobEffects.DOLPHINS_GRACE) && playerEntity != null && !playerEntity.isCreative() && rand.nextInt(100) == 0) { - stack.hurtAndBreak(1, livingEntity, (onBroken) -> { - onBroken.broadcastBreakEvent(EquipmentSlot.CHEST); - }); + if (livingEntity.hasEffect(MobEffects.DOLPHINS_GRACE) && playerEntity != null && !playerEntity.isCreative() && rand.nextInt(80) == 0) { + stack.hurtAndBreak(1, livingEntity, (onBroken) -> onBroken.broadcastBreakEvent(EquipmentSlot.CHEST)); } if (((LivingEntityAccess) livingEntity).getGraceRecharged()) { - livingEntity.addEffect(new MobEffectInstance(MobEffects.DOLPHINS_GRACE, 120 * idTag.getInt("lvl"))); + livingEntity.addEffect(new MobEffectInstance(MobEffects.DOLPHINS_GRACE, 100 * idTag.getInt("lvl"))); ((LivingEntityAccess) livingEntity).setGraceRecharged(false); } }