diff --git a/src/main/java/com/sekwah/narutomod/client/gui/NarutoInGameGUI.java b/src/main/java/com/sekwah/narutomod/client/gui/NarutoInGameGUI.java index f9a61807..8fa9c1fa 100644 --- a/src/main/java/com/sekwah/narutomod/client/gui/NarutoInGameGUI.java +++ b/src/main/java/com/sekwah/narutomod/client/gui/NarutoInGameGUI.java @@ -100,6 +100,8 @@ public void renderLevelLast(RenderLevelStageEvent event) { return; } Camera camera = mc.getEntityRenderDispatcher().camera; + //noinspection ConstantConditions the IDE inspects this as not possible to be null. There has been at least one error report proving this to be false. + if(camera == null) return; PoseStack poseStack = event.getPoseStack(); worldMatrix = event.getProjectionMatrix().copy(); worldMatrix.multiply(poseStack.last().pose());