From 89dabaeb43b08f0c84829f735e96384c808d50e3 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Thu, 24 Oct 2013 23:14:23 +0200 Subject: [PATCH] Hook location cleanup --- .../com/gmail/nossr50/skills/fishing/FishingManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java index c15922300..f490db7ca 100644 --- a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java @@ -277,10 +277,12 @@ public class FishingManager extends SkillManager { public void masterAngler(Fish hook) { Player player = getPlayer(); - mcMMOPlayer.setHookLocation(hook.getLocation()); - Biome biome = hook.getLocation().getBlock().getBiome(); + Location location = hook.getLocation(); + Biome biome = location.getBlock().getBiome(); double biteChance = hook.getBiteChance(); + mcMMOPlayer.setHookLocation(location); + if (biome == Biome.RIVER || biome == Biome.OCEAN) { biteChance = biteChance * AdvancedConfig.getInstance().getMasterAnglerBiomeModifier(); }