mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
commit
c7acdbe8ed
1 changed files with 25 additions and 0 deletions
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 a new issue