修复BEAST弹判定问题

This commit is contained in:
Light_Quanta 2024-08-09 00:13:15 +08:00
parent 1495d06b54
commit 7ad1fabc6e
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -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(-2.5, -2.5, -2.5));
} }
boundingBox = boundingBox.move(velocity.multiply(-5, -5, -5)); boundingBox = boundingBox.move(velocity.multiply(-5, -5, -5));
if (this.beast) {
boundingBox = boundingBox.inflate(3);
}
Vec3 hitPos = boundingBox.clip(startVec, endVec).orElse(null); Vec3 hitPos = boundingBox.clip(startVec, endVec).orElse(null);
if (hitPos == null) { if (hitPos == null) {