diff options
author | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2023-08-07 17:11:38 +0800 |
---|---|---|
committer | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2023-08-07 17:11:38 +0800 |
commit | 0d0bd433af7f1250af27dd989b45aa7e5cab5223 (patch) | |
tree | b319aef6d0917510bbeca188341e80da12767748 /src/main/java/me/xmrvizzy/skyblocker/skyblock | |
parent | 43400f0a1bd0d4b2b0dd944d7a82019e37206c90 (diff) | |
download | Skyblocker-0d0bd433af7f1250af27dd989b45aa7e5cab5223.tar.gz Skyblocker-0d0bd433af7f1250af27dd989b45aa7e5cab5223.tar.bz2 Skyblocker-0d0bd433af7f1250af27dd989b45aa7e5cab5223.zip |
Fix TriviaTest
Diffstat (limited to 'src/main/java/me/xmrvizzy/skyblocker/skyblock')
-rw-r--r-- | src/main/java/me/xmrvizzy/skyblocker/skyblock/FairySouls.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/me/xmrvizzy/skyblocker/skyblock/FairySouls.java b/src/main/java/me/xmrvizzy/skyblocker/skyblock/FairySouls.java index dd8f20e7..2bdfa401 100644 --- a/src/main/java/me/xmrvizzy/skyblocker/skyblock/FairySouls.java +++ b/src/main/java/me/xmrvizzy/skyblocker/skyblock/FairySouls.java @@ -37,6 +37,10 @@ public class FairySouls { private static final Map<String, Map<String, Set<BlockPos>>> foundFairies = new HashMap<>(); public static CompletableFuture<Void> runAsyncAfterFairySoulsLoad(Runnable runnable) { + if (fairySoulsLoaded == null) { + LOGGER.error("Fairy Souls have not being initialized yet! Please ensure the Fairy Souls module is initialized before modules calling this method in SkyblockerMod#onInitializeClient. This error can be safely ignore in a test environment."); + return CompletableFuture.completedFuture(null); + } return fairySoulsLoaded.thenRunAsync(runnable); } |