fixed a crash with fireworks

This commit is contained in:
Mini-Chiss 2015-08-16 08:39:03 +02:00
parent 8584e0355a
commit 91ce9cfba7
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import org.bukkit.Location;
import org.bukkit.Sound;
import org.bukkit.entity.Bat;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Firework;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.Slime;
@ -358,7 +359,7 @@ public class SoccerManager extends MiniPlugin
if (inPlayerArena(ent))
{
if (ent instanceof Bat || ent instanceof WitherSkull || ent instanceof TNTPrimed)
if (ent instanceof Bat || ent instanceof WitherSkull || ent instanceof TNTPrimed || ent instanceof Firework)
{
ent.remove();
continue;