1
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:
TheBusyBiscuit 2017-01-18 15:47:51 +01:00
parent d8c8e0f2e3
commit f313014c70

View File

@ -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());