fixed EXCEPTION_ACCESS_VIOLATION when stitching lods on and off using F6

This commit is contained in:
cola98765
2021-10-30 15:43:55 +02:00
parent 8e727011de
commit 73ddbd66b5
@@ -287,7 +287,7 @@ public class LodRenderer
profiler.popPush("LOD draw");
if (vbos != null)
if (vbos != null && LodConfig.CLIENT.advancedModOptions.debugging.drawLods.get())
{
ActiveRenderInfo renderInfo = mc.getGameRenderer().getMainCamera();
Vector3d cameraDir = new Vector3d(renderInfo.getLookVector());