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); } }