aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAikar <[email protected]>2019-02-28 02:44:47 -0500
committerAikar <[email protected]>2019-02-28 02:44:47 -0500
commit4ba151e59dc719d372eefa2030d3c7ab579f6012 (patch)
tree76de8009b7e2878d2517caa7eb3c79244ad014f0
parent087a5e99b81efda8a0ad7c740827f0bba6032f54 (diff)
downloadPaper-4ba151e59dc719d372eefa2030d3c7ab579f6012.tar.gz
Paper-4ba151e59dc719d372eefa2030d3c7ab579f6012.zip
Fix incorrect check on vehicle for auto dismount
This fixes an issue where players are dismounted from their horse on logout.
-rw-r--r--Spigot-Server-Patches/0372-Fix-an-issue-where-the-vehicle-doesn-t-track-the-pas.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/Spigot-Server-Patches/0372-Fix-an-issue-where-the-vehicle-doesn-t-track-the-pas.patch b/Spigot-Server-Patches/0372-Fix-an-issue-where-the-vehicle-doesn-t-track-the-pas.patch
index 177f90a28d..545437a8ee 100644
--- a/Spigot-Server-Patches/0372-Fix-an-issue-where-the-vehicle-doesn-t-track-the-pas.patch
+++ b/Spigot-Server-Patches/0372-Fix-an-issue-where-the-vehicle-doesn-t-track-the-pas.patch
@@ -27,7 +27,7 @@ index 6afb6cf7b..c1a2ddcf5 100644
this.ejectPassengers();
+
+ // Paper start - "Fixes" an issue where the vehicle doesn't track the passenger disconnection dismount.
-+ if (this.isPassenger() && this.getVehicleDirect() instanceof EntityLiving) {
++ if (this.isPassenger() && this.getVehicleDirect() instanceof EntityPlayer) {
+ this.stopRiding();
+ }
+ // Paper end