aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/makamys/neodymium/renderer/NeoRenderer.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java
index 3564c86..4fb80af 100644
--- a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java
+++ b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java
@@ -245,16 +245,17 @@ public class NeoRenderer {
RenderGlobal rg = Minecraft.getMinecraft().renderGlobal;
for(WorldRenderer wr : rg.sortedWorldRenderers) {
- ++rg.renderersLoaded;
-
- if (wr.skipRenderPass[0]) {
- ++rg.renderersSkippingRenderPass;
- } else if (!wr.isInFrustum) {
- ++rg.renderersBeingClipped;
- } else if (rg.occlusionEnabled && !wr.isVisible) {
- ++rg.renderersBeingOccluded;
- } else {
- ++rg.renderersBeingRendered;
+ if(wr != null) {
+ ++rg.renderersLoaded;
+ if (wr.skipRenderPass[0]) {
+ ++rg.renderersSkippingRenderPass;
+ } else if (!wr.isInFrustum) {
+ ++rg.renderersBeingClipped;
+ } else if (rg.occlusionEnabled && !wr.isVisible) {
+ ++rg.renderersBeingOccluded;
+ } else {
+ ++rg.renderersBeingRendered;
+ }
}
}
}