From 4232a03347c19a03ee26bbbfb640da07bdb6469d Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Fri, 23 May 2025 22:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=87=AA=E5=8A=A8=E7=B4=A2?= =?UTF-8?q?=E6=95=8C=E5=AE=9E=E4=BD=93=E7=9A=84=E5=87=BB=E6=9D=80=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=8F=91=E9=80=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../atsuishio/superbwarfare/event/LivingEventHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/event/LivingEventHandler.java b/src/main/java/com/atsuishio/superbwarfare/event/LivingEventHandler.java index fff6175f1..a13b5b5ca 100644 --- a/src/main/java/com/atsuishio/superbwarfare/event/LivingEventHandler.java +++ b/src/main/java/com/atsuishio/superbwarfare/event/LivingEventHandler.java @@ -9,8 +9,8 @@ import com.atsuishio.superbwarfare.data.gun.GunData; import com.atsuishio.superbwarfare.data.gun.value.ReloadState; import com.atsuishio.superbwarfare.entity.TargetEntity; import com.atsuishio.superbwarfare.entity.mixin.ICustomKnockback; -import com.atsuishio.superbwarfare.entity.vehicle.LaserTowerEntity; import com.atsuishio.superbwarfare.entity.vehicle.base.ArmedVehicleEntity; +import com.atsuishio.superbwarfare.entity.vehicle.base.AutoAimable; import com.atsuishio.superbwarfare.entity.vehicle.base.ContainerMobileVehicleEntity; import com.atsuishio.superbwarfare.entity.vehicle.base.VehicleEntity; import com.atsuishio.superbwarfare.init.*; @@ -633,14 +633,14 @@ public class LivingEventHandler { @SubscribeEvent public static void onPreSendKillMessage(PreKillEvent.SendKillMessage event) { - if (event.getSource().getDirectEntity() instanceof LaserTowerEntity && !(event.getTarget() instanceof Player)) { + if (event.getSource().getDirectEntity() instanceof AutoAimable && !(event.getTarget() instanceof Player)) { event.setCanceled(true); } } @SubscribeEvent public static void onPreIndicator(PreKillEvent.Indicator event) { - if (event.getSource().getDirectEntity() instanceof LaserTowerEntity && !(event.getTarget() instanceof Player)) { + if (event.getSource().getDirectEntity() instanceof AutoAimable && !(event.getTarget() instanceof Player)) { event.setCanceled(true); } }