mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
SPIGOT-5951: Projectile#getShooter() returns null
By: md_5 <git@md-5.net>
This commit is contained in:
parent
cb5bf362be
commit
b482319b4b
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
this.shooter = entity.getUniqueID();
|
||||
this.c = entity.getId();
|
||||
}
|
||||
+ this.projectileSource = (entity instanceof ProjectileSource) ? (ProjectileSource) entity.getBukkitEntity() : null; // CraftBukkit
|
||||
+ this.projectileSource = (entity != null && entity.getBukkitEntity() instanceof ProjectileSource) ? (ProjectileSource) entity.getBukkitEntity() : null; // CraftBukkit
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue