22 lines
992 B
Diff
22 lines
992 B
Diff
From 61037af4ec77e980df5cd7eba2e3af253da713bf Mon Sep 17 00:00:00 2001
|
|
From: Benjamin James Harrison-Sims <tehrainbowguy@gmail.com>
|
|
Date: Fri, 5 Apr 2013 18:13:35 +0100
|
|
Subject: [PATCH] Boat dupe fix.
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityBoat.java b/src/main/java/net/minecraft/server/EntityBoat.java
|
|
index 8839a45..953e86c 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) { // Spigot - Boat dupe fix
|
|
// CraftBukkit start
|
|
Vehicle vehicle = (Vehicle) this.getBukkitEntity();
|
|
VehicleDestroyEvent destroyEvent = new VehicleDestroyEvent(vehicle, null);
|
|
--
|
|
1.8.2.1
|
|
|