From c97da3868f86d1447ad7ff16ea42eac53df2a769 Mon Sep 17 00:00:00 2001 From: reidbhuntley Date: Sat, 5 Jun 2021 16:13:50 -0400 Subject: [PATCH] Prevent AgriCraft/InfinityLib crash --- .../create/foundation/render/backend/FastRenderDispatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/foundation/render/backend/FastRenderDispatcher.java b/src/main/java/com/simibubi/create/foundation/render/backend/FastRenderDispatcher.java index edeed800b..182287764 100644 --- a/src/main/java/com/simibubi/create/foundation/render/backend/FastRenderDispatcher.java +++ b/src/main/java/com/simibubi/create/foundation/render/backend/FastRenderDispatcher.java @@ -29,7 +29,7 @@ public class FastRenderDispatcher { KineticRenderer kineticRenderer = CreateClient.KINETIC_RENDERER.get(world); - Entity renderViewEntity = mc.renderViewEntity; + Entity renderViewEntity = mc.renderViewEntity != null ? mc.renderViewEntity : mc.player; kineticRenderer.tick(renderViewEntity.getX(), renderViewEntity.getY(), renderViewEntity.getZ()); ConcurrentHashMap.KeySetView map = queuedUpdates.get(world);