mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Hook location cleanup
This commit is contained in:
parent
c2e100b1e3
commit
89dabaeb43
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user