From c47a01f30fa95917890df68728ccd13cb50c9646 Mon Sep 17 00:00:00 2001 From: sisby-folk Date: Fri, 26 Jul 2024 16:12:00 +1000 Subject: [PATCH] onSetWorld at head in case of cancel --- .../glowcase/mixin/client/render/ber/WorldRendererMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/hephaestus/glowcase/mixin/client/render/ber/WorldRendererMixin.java b/src/main/java/dev/hephaestus/glowcase/mixin/client/render/ber/WorldRendererMixin.java index 48cc074..7d86a43 100644 --- a/src/main/java/dev/hephaestus/glowcase/mixin/client/render/ber/WorldRendererMixin.java +++ b/src/main/java/dev/hephaestus/glowcase/mixin/client/render/ber/WorldRendererMixin.java @@ -10,7 +10,7 @@ @Mixin(WorldRenderer.class) public class WorldRendererMixin { - @Inject(method = "setWorld", at = @At("RETURN")) + @Inject(method = "setWorld", at = @At("HEAD")) public void onSetWorld(ClientWorld clientWorld, CallbackInfo ci) { BakedBlockEntityRenderer.Manager.setWorld(clientWorld); }