From 7ad1fabc6ed426ed517abf08c812c096626af1a8 Mon Sep 17 00:00:00 2001 From: Light_Quanta Date: Fri, 9 Aug 2024 00:13:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBEAST=E5=BC=B9=E5=88=A4?= =?UTF-8?q?=E5=AE=9A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/mcreator/superbwarfare/entity/ProjectileEntity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/mcreator/superbwarfare/entity/ProjectileEntity.java b/src/main/java/net/mcreator/superbwarfare/entity/ProjectileEntity.java index afa676d44..155b3eccb 100644 --- a/src/main/java/net/mcreator/superbwarfare/entity/ProjectileEntity.java +++ b/src/main/java/net/mcreator/superbwarfare/entity/ProjectileEntity.java @@ -186,6 +186,11 @@ public class ProjectileEntity extends Entity implements IEntityAdditionalSpawnDa boundingBox = boundingBox.move(velocity.multiply(-2.5, -2.5, -2.5)); } boundingBox = boundingBox.move(velocity.multiply(-5, -5, -5)); + + if (this.beast) { + boundingBox = boundingBox.inflate(3); + } + Vec3 hitPos = boundingBox.clip(startVec, endVec).orElse(null); if (hitPos == null) {