Skip to content

Commit

Permalink
Fix multiworld conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyValenok committed Dec 19, 2024
1 parent d1be1ea commit 46b315b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public static boolean isValid(BlockGetter getter) {
}

private static boolean isLogicWorld(LevelAccessor level) {
var cl = level.getClass();
return cl == ServerLevel.class || cl == WorldGenRegion.class
|| isLogicWorld(cl);
return level instanceof ServerLevel || level instanceof WorldGenRegion
|| isLogicWorld(level.getClass());
}

private static final Map<Class<?>, Boolean> SEEN_CLASSES = new ConcurrentHashMap<>();
Expand Down

0 comments on commit 46b315b

Please sign in to comment.