Kill fireball if velocity isn't present. Fixes BUKKIT-1228

This commit is contained in:
feildmaster 2012-06-09 04:02:54 -05:00
parent d5ba6c6644
commit d836e57871

View File

@ -232,6 +232,8 @@ public class EntityFireball extends Entity {
this.dirX = ((NBTTagDouble) nbttaglist1.get(0)).data; this.dirX = ((NBTTagDouble) nbttaglist1.get(0)).data;
this.dirY = ((NBTTagDouble) nbttaglist1.get(1)).data; this.dirY = ((NBTTagDouble) nbttaglist1.get(1)).data;
this.dirZ = ((NBTTagDouble) nbttaglist1.get(2)).data; this.dirZ = ((NBTTagDouble) nbttaglist1.get(2)).data;
} else {
this.die();
} }
// CraftBukkit end // CraftBukkit end
} }