Prevent AgriCraft/InfinityLib crash

This commit is contained in:
reidbhuntley 2021-06-05 16:13:50 -04:00
parent 823520e047
commit c97da3868f

View file

@ -29,7 +29,7 @@ public class FastRenderDispatcher {
KineticRenderer kineticRenderer = CreateClient.KINETIC_RENDERER.get(world); 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()); kineticRenderer.tick(renderViewEntity.getX(), renderViewEntity.getY(), renderViewEntity.getZ());
ConcurrentHashMap.KeySetView<TileEntity, Boolean> map = queuedUpdates.get(world); ConcurrentHashMap.KeySetView<TileEntity, Boolean> map = queuedUpdates.get(world);