FireShield removes Projectiles thrown into it

This commit is contained in:
MistPhizzle 2014-08-04 21:52:22 -04:00
parent c9bd71e934
commit 46989b9f13

View file

@ -11,6 +11,7 @@ import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.Projectile;
import org.bukkit.util.Vector;
import com.projectkorra.ProjectKorra.Methods;
@ -163,6 +164,11 @@ public class FireShield {
WaterManipulation.removeAroundPoint(location, discradius);
EarthBlast.removeAroundPoint(location, discradius);
FireStream.removeAroundPoint(location, discradius);
for (Entity entity: Methods.getEntitiesAroundPoint(location, discradius)) {
if (entity instanceof Projectile) {
entity.remove();
}
}
}
}
}