修复BEAST弹判定问题
This commit is contained in:
parent
1495d06b54
commit
7ad1fabc6e
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue