From 3a10b2d83cece77475082127750b01e11a2510e1 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Mon, 4 Nov 2013 10:32:05 +0100 Subject: [PATCH] Make sure we're not setting a bite chance > 1.0 Fixes #1592 --- .../java/com/gmail/nossr50/skills/fishing/FishingManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 5333b70ad..489cf1af4 100644 --- a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java @@ -292,7 +292,7 @@ public class FishingManager extends SkillManager { biteChance = biteChance * AdvancedConfig.getInstance().getMasterAnglerBoatModifier(); } - hook.setBiteChance(biteChance); + hook.setBiteChance(Math.min(biteChance, 1.0)); } /**