diff options
| author | BuildTools <james.jenour@protonmail.com> | 2020-12-31 01:26:26 +0800 |
|---|---|---|
| committer | BuildTools <james.jenour@protonmail.com> | 2020-12-31 01:26:26 +0800 |
| commit | 9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46 (patch) | |
| tree | b5d9120c9211ec989c05f0fb7d02d6497e49f8d0 /src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java | |
| parent | 38bfc81ad013925463cd382bf99807d15b4fc53e (diff) | |
| download | notenoughupdates-9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46.tar.gz notenoughupdates-9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46.tar.bz2 notenoughupdates-9ae63509ab33c4d3f0ee19bc618ef4e4c654ef46.zip | |
1.8-PRE1
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java b/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java index 09f00beb..692c1d4f 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/gamemodes/SBGamemodes.java @@ -241,6 +241,8 @@ public class SBGamemodes { @SubscribeEvent public void onTick(TickEvent.ClientTickEvent event) { + if (event.phase != TickEvent.Phase.START) return; + if(getGamemode() == null || !NotEnoughUpdates.INSTANCE.hasSkyblockScoreboard()) return; boolean inDungeons = SBInfo.getInstance().getLocation() != null && SBInfo.getInstance().getLocation().equals("dungeon"); |
