mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 05:01:28 +00:00
Fix projectiles compiling.
This commit is contained in:
parent
53c1c8a8b7
commit
34599b7428
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ public class EssentialsEntityListener implements Listener
|
|||
}
|
||||
else if (eAttack instanceof Projectile && eDefend instanceof Player)
|
||||
{
|
||||
Entity shooter = ((Projectile)event.getDamager()).getShooter();
|
||||
//This should return a ProjectileSource on 1.7.3 beta +
|
||||
Object shooter = ((Projectile)event.getDamager()).getShooter();
|
||||
if (shooter instanceof Player)
|
||||
{
|
||||
final User attacker = ess.getUser((Player)shooter);
|
||||
|
|
Loading…
Reference in a new issue