mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-28 03:27:39 +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) {
|
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user