mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
637a5bcfec
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 04405534 SPIGOT-5034: FoodLevelChangeEvent add getItem method 8154c64c SPIGOT-4984: EnchantmentOffer.getCost() documentation is misleading CraftBukkit Changes:f2757f95
SPIGOT-5071: Player loot tables not triggeredf4242226
Optimize getEntitiesByClasses slightlye81013d7
SPIGOT-5072: Process phantom, cat and patrol spawning in CustomChunkGenerator30a63379
SPIGOT-5010: World#getEntitiesByClass/es also return entities in border chunks.43431ba6
SPIGOT-5034: FoodLevelChangeEvent add getItem method
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
From 04d4e3a892ffbf7855ac3ffe7206acf2bf47044b Mon Sep 17 00:00:00 2001
|
|
From: connorhartley <vectrixu+gh@gmail.com>
|
|
Date: Mon, 7 Jan 2019 14:43:48 -0600
|
|
Subject: [PATCH] Workaround for vehicle tracking issue on disconnect
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
|
|
index 3d0400d828..06ca6cbf05 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
|
@@ -1283,6 +1283,13 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
|
public void n() {
|
|
this.ct = true;
|
|
this.ejectPassengers();
|
|
+
|
|
+ // Paper start - Workaround an issue where the vehicle doesn't track the passenger disconnection dismount.
|
|
+ if (this.isPassenger() && this.getVehicle() instanceof EntityPlayer) {
|
|
+ this.stopRiding();
|
|
+ }
|
|
+ // Paper end
|
|
+
|
|
if (this.isSleeping()) {
|
|
this.wakeup(true, false, false);
|
|
}
|
|
--
|
|
2.22.0
|
|
|