diff --git a/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/mixin/client/rendering/WorldRendererMixin.java b/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/mixin/client/rendering/WorldRendererMixin.java index ed3e7b9aa..dc67a43ca 100644 --- a/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/mixin/client/rendering/WorldRendererMixin.java +++ b/fabric-rendering-v1/src/client/java/net/fabricmc/fabric/mixin/client/rendering/WorldRendererMixin.java @@ -79,6 +79,18 @@ public abstract class WorldRendererMixin { @Inject(method = "setupTerrain", at = @At("RETURN")) private void afterTerrainSetup(Camera camera, Frustum frustum, boolean hasForcedFrustum, boolean spectator, CallbackInfo ci) { context.setFrustum(frustum); + } + + @Inject( + method = "method_62214", + at = @At( + value = "INVOKE_STRING", + target = "Lnet/minecraft/util/profiler/Profiler;push(Ljava/lang/String;)V", + args = "ldc=terrain", + shift = Shift.AFTER + ) // Points to after profiler.push("terrain"); + ) + private void beforeTerrainSolid(CallbackInfo ci) { WorldRenderEvents.AFTER_SETUP.invoker().afterSetup(context); }