1
0
Fork 0

Implement deprecated get/set shooter bukkit's methods

fix #368
kcx-1614
Sergey Shatunov 2016-02-14 22:46:12 +07:00
parent 3f7b5d0941
commit 232bc98881
1 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,9 @@ public class CustomProjectileEntity extends CraftCustomEntity implements Project
@Override
public LivingEntity _INVALID_getShooter() {
throw new IllegalStateException("Not implemented!");
if (shooter instanceof LivingEntity)
return (LivingEntity) shooter;
return null;
}
@Override
@ -28,7 +30,7 @@ public class CustomProjectileEntity extends CraftCustomEntity implements Project
@Override
public void _INVALID_setShooter(LivingEntity shooter) {
throw new IllegalStateException("Not implemented!");
this.shooter = shooter instanceof ProjectileSource ? (ProjectileSource) shooter : null;
}
@Override