mirror of
https://github.com/PaperMC/Paper.git
synced 2024-10-31 16:00:18 +01:00
Fixes boat dupe
This commit is contained in:
parent
2d98fbbf6e
commit
f36ab707b8
25
CraftBukkit-Patches/0044-Boat-dupe-fix.patch
Normal file
25
CraftBukkit-Patches/0044-Boat-dupe-fix.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From dd262b67dd4a781a72db65f1be65e80c103fa042 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.
|
||||
|
||||
---
|
||||
src/main/java/net/minecraft/server/EntityBoat.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user