调整准星设置
This commit is contained in:
parent
6dc89095ee
commit
15cbe7e447
1 changed files with 2 additions and 6 deletions
|
@ -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))) {
|
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);
|
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 (!player.isSprinting() || ClientEventHandler.cantSprint > 0) {
|
||||||
if (stack.is(ModTags.Items.SHOTGUN)) {
|
if (data.projectileAmount() > 1) {
|
||||||
if (perk instanceof AmmoPerk ammoPerk && ammoPerk.slug) {
|
shotgunCrossHair(guiGraphics, finPosX, finPosY, finLength);
|
||||||
normalCrossHair(guiGraphics, w, h, spread, moveX, moveY);
|
|
||||||
} else {
|
|
||||||
shotgunCrossHair(guiGraphics, finPosX, finPosY, finLength);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
normalCrossHair(guiGraphics, w, h, spread, moveX, moveY);
|
normalCrossHair(guiGraphics, w, h, spread, moveX, moveY);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue