修复一个意外的NPE错误
This commit is contained in:
parent
eb59eeb271
commit
ee821b9fc9
1 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,8 @@ public class ProjectileEntity extends Entity implements IEntityAdditionalSpawnDa
|
|||
|
||||
@Nullable
|
||||
protected EntityResult findEntityOnPath(Vec3 startVec, Vec3 endVec) {
|
||||
if (this.shooter == null) return null;
|
||||
|
||||
Vec3 hitVec = null;
|
||||
Entity hitEntity = null;
|
||||
boolean headshot = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue