Skip to content

Commit

Permalink
Calio: Fix #4.
Browse files Browse the repository at this point in the history
  • Loading branch information
MerchantPug committed Mar 13, 2024
1 parent ac45e62 commit bd19572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public static boolean isServerContext(@Nullable RegistryAccess access) {
if (instance == null) return true; // Data Context
if (instance.getConnection() == null) return true; // Outside a world
if (ServerLifecycleHooks.getCurrentServer() == null) return false; // No server.
return access != null && access != instance.getConnection().registryAccess();
return access != null;
}
}

0 comments on commit bd19572

Please sign in to comment.