mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 04:39:32 +00:00
FireShield removes Projectiles thrown into it
This commit is contained in:
parent
c9bd71e934
commit
46989b9f13
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue