From d836e5787159e1cb145da5d2f16b9cfdf5fa16da Mon Sep 17 00:00:00 2001 From: feildmaster Date: Sat, 9 Jun 2012 04:02:54 -0500 Subject: [PATCH] Kill fireball if velocity isn't present. Fixes BUKKIT-1228 --- src/main/java/net/minecraft/server/EntityFireball.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/minecraft/server/EntityFireball.java b/src/main/java/net/minecraft/server/EntityFireball.java index f107b92e61..92abbdf4fe 100644 --- a/src/main/java/net/minecraft/server/EntityFireball.java +++ b/src/main/java/net/minecraft/server/EntityFireball.java @@ -232,6 +232,8 @@ public class EntityFireball extends Entity { this.dirX = ((NBTTagDouble) nbttaglist1.get(0)).data; this.dirY = ((NBTTagDouble) nbttaglist1.get(1)).data; this.dirZ = ((NBTTagDouble) nbttaglist1.get(2)).data; + } else { + this.die(); } // CraftBukkit end }