Properly end the dynamic lighting profiler section (#1751)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2026-05-16 12:20:09 -07:00
1 parent 356ba376fe
commit 48eba2fd96
1 file changed
+2 -1
@@ -19,8 +19,9 @@ public class MixinEntityRenderer {
private void updateDynamicLights(float p_78471_1_, long p_78471_2_, CallbackInfo ci) {
IDynamicLightWorldRenderer renderer = DynamicLights.getActiveRenderer();
if (renderer != null && renderer.isActive()) {
mc.mcProfiler.endStartSection("angelica_dynamic_lighting");
mc.mcProfiler.startSection("angelica_dynamic_lighting");
DynamicLights.get().updateAll(renderer);
mc.mcProfiler.endSection();
}
}
}