diff --git a/src/main/java/dev/xpple/simplewaypoints/impl/WaypointRenderingHelper.java b/src/main/java/dev/xpple/simplewaypoints/impl/WaypointRenderingHelper.java index d63cdf9..bb62baa 100644 --- a/src/main/java/dev/xpple/simplewaypoints/impl/WaypointRenderingHelper.java +++ b/src/main/java/dev/xpple/simplewaypoints/impl/WaypointRenderingHelper.java @@ -165,6 +165,12 @@ private static void renderWaypointMarkers(GuiGraphicsExtractor guiGraphicsExtrac } private static void extractWaypointBoxes(LevelExtractionContext context) { + // Mods that render a secondary world (e.g. Immersive Portals' portal + // destination pass) run extraction with no level render state. + if (context.levelState() == null) { + return; + } + String worldIdentifier = SimpleWaypointsImpl.INSTANCE.getWorldIdentifier(Minecraft.getInstance()); if (worldIdentifier == null) { return;