修复部分blit传参问题

This commit is contained in:
Light_Quanta 2025-04-08 12:16:53 +08:00
parent b4bd5ba120
commit 46b0b19233
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
4 changed files with 6 additions and 6 deletions

View file

@ -126,7 +126,7 @@ public class DroneUIOverlay {
if (lookAtEntity) {
// 实体距离
guiGraphics.drawString(mc.font, Component.translatable("tips.superbwarfare.drone.range")
.append(Component.literal(FormatTool.format1D(entityRange, "m ") + lookingEntity.getDisplayName().getString())),
.append(Component.literal(FormatTool.format1D(entityRange, "m ") + lookingEntity.getDisplayName())),
w / 2 + 12, h / 2 - 28, color, false);
} else {
// 方块距离
@ -158,7 +158,7 @@ public class DroneUIOverlay {
float x = (float) point.x;
float y = (float) point.y;
RenderHelper.preciseBlit(guiGraphics, FRAME, x - 12, y - 12, 0, 0, 24, 24, 24, 24, 1f);
RenderHelper.preciseBlit(event.getGuiGraphics(), FRAME, x - 12, y - 12, 24, 24, 0, 0, 24, 24, 24, 24);
poseStack.popPose();
}
}

View file

@ -105,7 +105,7 @@ public class HandsomeFrameOverlay {
icon = FRAME_WEAK;
}
RenderHelper.preciseBlit(event.getGuiGraphics(), icon, x - 12, y - 12, 0, 0, 24, 24, 24, 24, 1f);
RenderHelper.preciseBlit(event.getGuiGraphics(), icon, x - 12, y - 12, 24, 24, 0, 0, 24, 24, 24, 24);
poseStack.popPose();
}
}

View file

@ -119,7 +119,7 @@ public class JavelinHudOverlay {
float x = (float) point.x;
float y = (float) point.y;
RenderHelper.preciseBlit(event.getGuiGraphics(), lockOn ? FRAME_LOCK : nearest ? FRAME_TARGET : FRAME, x - 12, y - 12, 0, 0, 24, 24, 24, 24, 1f);
RenderHelper.preciseBlit(event.getGuiGraphics(), lockOn ? FRAME_LOCK : nearest ? FRAME_TARGET : FRAME, x - 12, y - 12, 24, 24, 0, 0, 24, 24, 24, 24);
poseStack.popPose();
}
} else {
@ -136,7 +136,7 @@ public class JavelinHudOverlay {
float x = (float) point.x;
float y = (float) point.y;
RenderHelper.preciseBlit(event.getGuiGraphics(), lockOn ? FRAME_LOCK : FRAME_TARGET, x - 12, y - 12, 0, 0, 24, 24, 24, 24, 1f);
RenderHelper.preciseBlit(event.getGuiGraphics(), lockOn ? FRAME_LOCK : FRAME_TARGET, x - 12, y - 12, 24, 24, 0, 0, 24, 24, 24, 24);
poseStack.popPose();
}

View file

@ -49,7 +49,7 @@ public class RedTriangleOverlay {
float x = (float) point.x;
float y = (float) point.y;
RenderHelper.preciseBlit(event.getGuiGraphics(), TRIANGLE, x - 4, y - 4, 0, 0, 8, 8, 8, 8, -65536);
RenderHelper.preciseBlit(event.getGuiGraphics(), TRIANGLE, x - 4, y - 4, 8, 8, 0, 0, 8, 8, 8, 8);
RenderSystem.depthMask(true);
RenderSystem.defaultBlendFunc();