Hook location cleanup

This commit is contained in:
TfT_02 2013-10-24 23:14:23 +02:00
parent c2e100b1e3
commit 89dabaeb43

View File

@ -277,10 +277,12 @@ public class FishingManager extends SkillManager {
public void masterAngler(Fish hook) { public void masterAngler(Fish hook) {
Player player = getPlayer(); Player player = getPlayer();
mcMMOPlayer.setHookLocation(hook.getLocation()); Location location = hook.getLocation();
Biome biome = hook.getLocation().getBlock().getBiome(); Biome biome = location.getBlock().getBiome();
double biteChance = hook.getBiteChance(); double biteChance = hook.getBiteChance();
mcMMOPlayer.setHookLocation(location);
if (biome == Biome.RIVER || biome == Biome.OCEAN) { if (biome == Biome.RIVER || biome == Biome.OCEAN) {
biteChance = biteChance * AdvancedConfig.getInstance().getMasterAnglerBiomeModifier(); biteChance = biteChance * AdvancedConfig.getInstance().getMasterAnglerBiomeModifier();
} }