diff options
author | feildmaster <admin@feildmaster.com> | 2012-06-09 04:02:54 -0500 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-06-09 04:35:55 -0500 |
commit | d836e5787159e1cb145da5d2f16b9cfdf5fa16da (patch) | |
tree | f6d2faeb0654aa4adba3ab6384e060c11bf24c6c /src/main/java/net | |
parent | d5ba6c66448faa4839283228651665dd9b1f8811 (diff) | |
download | craftbukkit-d836e5787159e1cb145da5d2f16b9cfdf5fa16da.tar craftbukkit-d836e5787159e1cb145da5d2f16b9cfdf5fa16da.tar.gz craftbukkit-d836e5787159e1cb145da5d2f16b9cfdf5fa16da.tar.lz craftbukkit-d836e5787159e1cb145da5d2f16b9cfdf5fa16da.tar.xz craftbukkit-d836e5787159e1cb145da5d2f16b9cfdf5fa16da.zip |
Kill fireball if velocity isn't present. Fixes BUKKIT-1228
Diffstat (limited to 'src/main/java/net')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityFireball.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityFireball.java b/src/main/java/net/minecraft/server/EntityFireball.java index f107b92e..92abbdf4 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 } |