Skip to content

Commit

Permalink
Fixed NPEs occurring when worlds are loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed May 10, 2021
1 parent da7c4a1 commit 693a0e1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ private static boolean isValidLocation(Block block) {
}

public static void loadWorldData(World world) {
if (locQueue == null) return;
if (NewConfig.get().WHITELIST_WORLD.get() && !NewConfig.get().ALLOWED_WORLDS.get().contains(world.getName())) return;
if (world.getGenerator() != null && NewConfig.get().IGNORE_WORLD_GENS.get().contains(world.getGenerator().getClass().getName())) return;
if (!locQueue.containsKey(world.getUID())) {
Expand Down

0 comments on commit 693a0e1

Please sign in to comment.