diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2013-04-11 14:16:16 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-04-13 00:29:49 -0500 |
commit | 70a778f475aae04cdd8eaa73359f1099b85f86d2 (patch) | |
tree | c806b2b0bcb5620b1147d1e0ab9f10c4b8dd16c3 /src/main/java/net/minecraft/server | |
parent | 7939572c33130103609c245f49c03dbfe4a59ad6 (diff) | |
download | craftbukkit-70a778f475aae04cdd8eaa73359f1099b85f86d2.tar craftbukkit-70a778f475aae04cdd8eaa73359f1099b85f86d2.tar.gz craftbukkit-70a778f475aae04cdd8eaa73359f1099b85f86d2.tar.lz craftbukkit-70a778f475aae04cdd8eaa73359f1099b85f86d2.tar.xz craftbukkit-70a778f475aae04cdd8eaa73359f1099b85f86d2.zip |
Boats can only die once.
In certain scenarios a boat can be killed multiple ways in a single tick.
Due to improper guards this can cause the death code to run multiple times
creating item drops. To correct this we insert the appropriate death check.
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityBoat.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityBoat.java b/src/main/java/net/minecraft/server/EntityBoat.java index 8839a452..8d6381bb 100644 --- a/src/main/java/net/minecraft/server/EntityBoat.java +++ b/src/main/java/net/minecraft/server/EntityBoat.java @@ -294,7 +294,7 @@ public class EntityBoat extends Entity { this.move(this.motX, this.motY, this.motZ); if (this.positionChanged && d3 > 0.2D) { - if (!this.world.isStatic) { + if (!this.world.isStatic && !this.dead) { // CraftBukkit - That which is dead cannot die // CraftBukkit start Vehicle vehicle = (Vehicle) this.getBukkitEntity(); VehicleDestroyEvent destroyEvent = new VehicleDestroyEvent(vehicle, null); |