From 205d86c9af337b67ead74d6a517016fe377b5ce3 Mon Sep 17 00:00:00 2001 From: Atsuihsio <842960157@qq.com> Date: Mon, 9 Dec 2024 23:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=95=E5=BC=B9=E6=97=A0?= =?UTF-8?q?=E4=BA=BA=E6=9C=BA=E4=BC=9A=E6=92=9E=E5=88=B0=E8=87=AA=E5=B7=B1?= =?UTF-8?q?=E6=89=8B=E9=9B=B7=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 2 +- .../java/com/atsuishio/superbwarfare/entity/DroneEntity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index ca9ba428c..d2afbddef 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,5 +13,5 @@ mod_description=A Warfare Mod minecraft_version=1.20.1 jei_version=15.2.0.27 cloth_config_version=11.1.106 -mod_version=0.3.1 +mod_version=0.3.2 mod_authors=Atsuishio, Roki27, Light_Quanta \ No newline at end of file diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/DroneEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/DroneEntity.java index dbdbbf04c..377176f80 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/DroneEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/DroneEntity.java @@ -380,7 +380,7 @@ public class DroneEntity extends LivingEntity implements GeoEntity { var level = this.level(); final Vec3 center = new Vec3(this.getX(), this.getY(), this.getZ()); for (Entity target : level.getEntitiesOfClass(Entity.class, aabb, e -> true).stream().sorted(Comparator.comparingDouble(e -> e.distanceToSqr(center))).toList()) { - if (this != target && target != null) { + if (this != target && target != null && !(target instanceof RgoGrenadeEntity)) { hitEntityCrash(controller, target); } }