diff --git a/imm_ptl_core/src/main/java/com/qouteall/immersive_portals/teleportation/CollisionHelper.java b/imm_ptl_core/src/main/java/com/qouteall/immersive_portals/teleportation/CollisionHelper.java index a0cf441e6..277a0a8df 100644 --- a/imm_ptl_core/src/main/java/com/qouteall/immersive_portals/teleportation/CollisionHelper.java +++ b/imm_ptl_core/src/main/java/com/qouteall/immersive_portals/teleportation/CollisionHelper.java @@ -340,8 +340,10 @@ public static void initClient() { @Environment(EnvType.CLIENT) public static void updateClientGlobalPortalCollidingPortal() { - for (ClientWorld world : ClientWorldLoader.getClientWorlds()) { - updateGlobalPortalCollidingPortalForWorld(world); + if (ClientWorldLoader.getIsInitialized()) { + for (ClientWorld world : ClientWorldLoader.getClientWorlds()) { + updateGlobalPortalCollidingPortalForWorld(world); + } } }