Skip to content

Commit

Permalink
feat(ench): modify LuckOfTheSnow temperature threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Feb 22, 2024
1 parent 9d21669 commit 3f5e4dc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ public int getMaxCost(int lvl) {
@Override
public Pair<Integer, Integer> 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);
Expand Down

0 comments on commit 3f5e4dc

Please sign in to comment.