Account for Master Angler config values in /fishing

Fixes #1537
This commit is contained in:
TfT_02 2013-10-14 16:28:48 +02:00
parent 3a5de8e2ce
commit dd64c4008b

View File

@ -86,11 +86,11 @@ public class FishingCommand extends SkillCommand {
Biome biome = player.getLocation().getBlock().getBiome();
if (biome == Biome.RIVER || biome == Biome.OCEAN) {
rawBiteChance = rawBiteChance * 2.0;
rawBiteChance = rawBiteChance * AdvancedConfig.getInstance().getMasterAnglerBiomeModifier();
}
if (player.isInsideVehicle() && player.getVehicle().getType() == EntityType.BOAT) {
rawBiteChance = rawBiteChance * 2.0;
rawBiteChance = rawBiteChance * AdvancedConfig.getInstance().getMasterAnglerBoatModifier();
}
biteChance = calculateAbilityDisplayValues(rawBiteChance * 100.0)[0];