调整准星设置

This commit is contained in:
17146 2025-05-22 15:22:15 +08:00 committed by Light_Quanta
parent 6dc89095ee
commit 15cbe7e447
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -98,12 +98,8 @@ public class CrossHairOverlay implements LayeredDraw.Layer {
if (shouldRenderCrossHair(player) || (Minecraft.getInstance().options.getCameraType() == CameraType.FIRST_PERSON && stack.is(ModItems.MINIGUN.get())) || (Minecraft.getInstance().options.getCameraType() == CameraType.THIRD_PERSON_BACK && (ClientEventHandler.zoomTime > 0 || ClientEventHandler.bowPullPos > 0))) {
preciseBlit(guiGraphics, Mod.loc("textures/screens/point.png"), w / 2f - 7.5f + moveX, h / 2f - 7.5f + moveY, 0, 0, 16, 16, 16, 16);
if (!player.isSprinting() || ClientEventHandler.cantSprint > 0) {
if (stack.is(ModTags.Items.SHOTGUN)) {
if (perk instanceof AmmoPerk ammoPerk && ammoPerk.slug) {
normalCrossHair(guiGraphics, w, h, spread, moveX, moveY);
} else {
shotgunCrossHair(guiGraphics, finPosX, finPosY, finLength);
}
if (data.projectileAmount() > 1) {
shotgunCrossHair(guiGraphics, finPosX, finPosY, finLength);
} else {
normalCrossHair(guiGraphics, w, h, spread, moveX, moveY);
}