From e76808d1cbd51a47b35fab470283d488025aef17 Mon Sep 17 00:00:00 2001 From: Atsuishio <842960157@qq.com> Date: Tue, 3 Jun 2025 01:27:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E5=B0=8F=E7=88=86=E7=82=B8=E8=8C=83?= =?UTF-8?q?=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/atsuishio/superbwarfare/tools/CustomExplosion.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/tools/CustomExplosion.java b/src/main/java/com/atsuishio/superbwarfare/tools/CustomExplosion.java index bfcb1095a..54588a8f2 100644 --- a/src/main/java/com/atsuishio/superbwarfare/tools/CustomExplosion.java +++ b/src/main/java/com/atsuishio/superbwarfare/tools/CustomExplosion.java @@ -81,7 +81,7 @@ public class CustomExplosion extends Explosion { final Vec3 center = new Vec3(pToBlowX, pToBlowY, pToBlowZ); if (pLevel instanceof ServerLevel && vanillaExplode) { - pLevel.explode(source == null ? null : source.getEntity(), pToBlowX, pToBlowY, pToBlowZ, 0.5f * pRadius, ExplosionConfig.EXPLOSION_DESTROY.get() ? Level.ExplosionInteraction.BLOCK : Level.ExplosionInteraction.NONE); + pLevel.explode(source == null ? null : source.getEntity(), pToBlowX, pToBlowY, pToBlowZ, 0.4f * pRadius, ExplosionConfig.EXPLOSION_DESTROY.get() ? Level.ExplosionInteraction.BLOCK : Level.ExplosionInteraction.NONE); } for (Entity target : level.getEntitiesOfClass(Entity.class, new AABB(center, center).inflate(4 * radius), e -> true).stream().sorted(Comparator.comparingDouble(e -> e.distanceToSqr(center))).toList()) { @@ -142,7 +142,7 @@ public class CustomExplosion extends Explosion { d0 /= d3; d1 /= d3; d2 /= d3; - float f = this.radius * (0.4F + this.level.random.nextFloat() * 0.3F); + float f = this.radius * (0.2F + this.level.random.nextFloat() * 0.15F); double d4 = this.x; double d6 = this.y; double d8 = this.z;