Make sure we're not setting a bite chance > 1.0

Fixes #1592
This commit is contained in:
TfT_02 2013-11-04 10:32:05 +01:00
parent 32e7c48fd8
commit 3a10b2d83c

View File

@ -292,7 +292,7 @@ public class FishingManager extends SkillManager {
biteChance = biteChance * AdvancedConfig.getInstance().getMasterAnglerBoatModifier(); biteChance = biteChance * AdvancedConfig.getInstance().getMasterAnglerBoatModifier();
} }
hook.setBiteChance(biteChance); hook.setBiteChance(Math.min(biteChance, 1.0));
} }
/** /**