From 3f5e4dc4d0c4e2f329535c0f7a6bfdda4479903f Mon Sep 17 00:00:00 2001 From: WakelessSloth56 Date: Fri, 23 Feb 2024 00:54:51 +0800 Subject: [PATCH] feat(ench): modify LuckOfTheSnow temperature threshold --- .../enchantment/impl/LuckOfTheSnowEnchantment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/auioc/mcmod/harmonicench/enchantment/impl/LuckOfTheSnowEnchantment.java b/src/main/java/org/auioc/mcmod/harmonicench/enchantment/impl/LuckOfTheSnowEnchantment.java index f8aa877..06a912c 100644 --- a/src/main/java/org/auioc/mcmod/harmonicench/enchantment/impl/LuckOfTheSnowEnchantment.java +++ b/src/main/java/org/auioc/mcmod/harmonicench/enchantment/impl/LuckOfTheSnowEnchantment.java @@ -69,9 +69,9 @@ public int getMaxCost(int lvl) { @Override public Pair preFishingRodCast(int lvl, ItemStack fishingRod, ServerPlayer player, int speedBonus, int luckBonus) { float temperature = player.level().getBiome(player.blockPosition()).value().getBaseTemperature(); - if (temperature <= 0.0F) { + if (temperature <= 0.05F) { luckBonus += lvl * 2; - } else if (temperature <= 0.2F) { + } else if (temperature <= 0.3F) { luckBonus += lvl; } return Pair.of(speedBonus, luckBonus);