mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 10:04:51 +02:00
Fix projectiles compiling.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user