mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 11:14:44 +02:00
Fix Lure above 3 breaking fishing
This commit is contained in:
@ -8,14 +8,16 @@ import org.jetbrains.annotations.NotNull;
|
||||
public class MasterAnglerTask extends BukkitRunnable {
|
||||
private final @NotNull FishHook fishHook;
|
||||
private final @NotNull FishingManager fishingManager;
|
||||
private final int lureLevel;
|
||||
|
||||
public MasterAnglerTask(@NotNull FishHook fishHook, @NotNull FishingManager fishingManager) {
|
||||
public MasterAnglerTask(@NotNull FishHook fishHook, @NotNull FishingManager fishingManager, int lureLevel) {
|
||||
this.fishHook = fishHook;
|
||||
this.fishingManager = fishingManager;
|
||||
this.lureLevel = lureLevel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
fishingManager.processMasterAngler(fishHook);
|
||||
fishingManager.processMasterAngler(fishHook, lureLevel);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user