mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
SPIGOT-5951: Projectile#getShooter() returns null
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
this.shooter = entity.getUniqueID();
|
this.shooter = entity.getUniqueID();
|
||||||
this.c = entity.getId();
|
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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user