From 6d6861754ea22bb012a8d1940dc232f55f147694 Mon Sep 17 00:00:00 2001 From: Atsuihsio <842960157@qq.com> Date: Wed, 31 Jul 2024 20:42:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=A8=E7=94=BBbug?= =?UTF-8?q?=EF=BC=8C=E9=99=90=E5=88=B6=E8=BD=AC=E9=80=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/mixins/MouseHandlerMixin.java | 9 ++++++++- .../animations/mle1934.animation.json | 14 +++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/mcreator/superbwarfare/mixins/MouseHandlerMixin.java b/src/main/java/net/mcreator/superbwarfare/mixins/MouseHandlerMixin.java index 547f84d52..736f41c24 100644 --- a/src/main/java/net/mcreator/superbwarfare/mixins/MouseHandlerMixin.java +++ b/src/main/java/net/mcreator/superbwarfare/mixins/MouseHandlerMixin.java @@ -38,13 +38,20 @@ public class MouseHandlerMixin { ItemStack stack = mc.player.getMainHandItem(); - if (player.getVehicle() != null && (player.getVehicle() instanceof Mk42Entity || player.getVehicle() instanceof Mle1934Entity)) { + if (player.getVehicle() != null && player.getVehicle() instanceof Mk42Entity) { if ((player.getCapability(ModVariables.PLAYER_VARIABLES_CAPABILITY, null).orElse(new ModVariables.PlayerVariables())).zoom) { return 0.12; } else { return 0.23; } } + if (player.getVehicle() != null && player.getVehicle() instanceof Mle1934Entity) { + if ((player.getCapability(ModVariables.PLAYER_VARIABLES_CAPABILITY, null).orElse(new ModVariables.PlayerVariables())).zoom) { + return 0.09; + } else { + return 0.19; + } + } if (!stack.is(ModTags.Items.GUN)) { return original; diff --git a/src/main/resources/assets/superbwarfare/animations/mle1934.animation.json b/src/main/resources/assets/superbwarfare/animations/mle1934.animation.json index 788309c2d..e3a6d5b87 100644 --- a/src/main/resources/assets/superbwarfare/animations/mle1934.animation.json +++ b/src/main/resources/assets/superbwarfare/animations/mle1934.animation.json @@ -2,7 +2,19 @@ "format_version": "1.8.0", "animations": { "animation.mle1934.idle": { - "loop": true + "loop": true, + "bones": { + "flare": { + "scale": { + "vector": [0, 0, 0] + } + }, + "flare2": { + "scale": { + "vector": [0, 0, 0] + } + } + } }, "animation.mle1934.fire": { "loop": "hold_on_last_frame",