From e80f849a0e0fe73e2b0b13bfe998f6b9bc066a54 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Sun, 17 Mar 2024 16:18:05 -0400 Subject: [PATCH] fix comment location --- .../foundation/mixin/client/MapRendererMapInstanceMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/foundation/mixin/client/MapRendererMapInstanceMixin.java b/src/main/java/com/simibubi/create/foundation/mixin/client/MapRendererMapInstanceMixin.java index a70f69ee2e..4b1356b953 100644 --- a/src/main/java/com/simibubi/create/foundation/mixin/client/MapRendererMapInstanceMixin.java +++ b/src/main/java/com/simibubi/create/foundation/mixin/client/MapRendererMapInstanceMixin.java @@ -26,8 +26,8 @@ public class MapRendererMapInstanceMixin { private MapItemSavedData data; // @Group(name = "custom_decoration_rendering", min = 1, max = 1) - @Inject(method = "draw(Lcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;ZI)V", at = @At(value = "INVOKE", target = "Ljava/util/Iterator;hasNext()Z"), locals = LocalCapture.CAPTURE_FAILHARD) // fabric: we inject in a different place to call our method before porting lib returns + @Inject(method = "draw(Lcom/mojang/blaze3d/vertex/PoseStack;Lnet/minecraft/client/renderer/MultiBufferSource;ZI)V", at = @At(value = "INVOKE", target = "Ljava/util/Iterator;hasNext()Z"), locals = LocalCapture.CAPTURE_FAILHARD) private void onDraw(PoseStack poseStack, MultiBufferSource bufferSource, boolean active, int packedLight, CallbackInfo ci, int i, int j, float f, Matrix4f matrix4f, VertexConsumer vertexConsumer, int index, Iterator iterator) { if (iterator.next() instanceof CustomRenderedMapDecoration renderer) { renderer.render(poseStack, bufferSource, active, packedLight, data, index);