mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Because otherwise you can't fish at low levels.
This commit is contained in:
parent
14630fe956
commit
26542f3d6e
@ -92,7 +92,9 @@ public class FishingManager extends SkillManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void masterAngler(Fish hook) {
|
public void masterAngler(Fish hook) {
|
||||||
hook.setBiteChance(Math.min(hook.getBiteChance() * (getSkillLevel() / 10.0), 1.0));
|
System.out.println("BEFORE: " + hook.getBiteChance());
|
||||||
|
hook.setBiteChance(Math.min(hook.getBiteChance() * Math.max((getSkillLevel() / 10.0), 1.0), 1.0));
|
||||||
|
System.out.println("AFTER: " + hook.getBiteChance());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user