Update EntityPlayer.java
This commit is contained in:
@@ -1096,6 +1096,13 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
|||||||
public void s() {
|
public void s() {
|
||||||
this.cu = true;
|
this.cu = true;
|
||||||
this.ejectPassengers();
|
this.ejectPassengers();
|
||||||
|
|
||||||
|
// Paper start - "Fixes" an issue where the vehicle doesn't track the passenger disconnection dismount.
|
||||||
|
if (this.isPassenger() && this.getVehicleDirect() instanceof EntityLiving) {
|
||||||
|
this.stopRiding();
|
||||||
|
}
|
||||||
|
// Paper end
|
||||||
|
|
||||||
if (this.sleeping) {
|
if (this.sleeping) {
|
||||||
this.a(true, false, false);
|
this.a(true, false, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user