mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Fixed GuideHandler Runnables
This commit is contained in:
parent
d8c8e0f2e3
commit
f313014c70
@ -27,9 +27,13 @@ public abstract class GuideHandler {
|
||||
public abstract boolean trackHistory();
|
||||
|
||||
public abstract int next(Player p, int index, ChestMenu menu);
|
||||
|
||||
public PlayerRunnable getRunnable(boolean survival) {
|
||||
return this.getRunnable();
|
||||
}
|
||||
|
||||
public void run(Player p, boolean survival) {
|
||||
this.getRunnable().run(p);
|
||||
this.getRunnable(survival).run(p);
|
||||
|
||||
if (survival && this.trackHistory()) {
|
||||
SlimefunGuide.addToHistory(p, getURID());
|
||||
|
Loading…
Reference in New Issue
Block a user