mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-12 15:08:27 +02:00
Fixed Vehicle.eject() not ejecting players properly.
This commit is contained in:
parent
be6cd7ed9c
commit
e6e50ddf9b
@ -194,7 +194,16 @@ public class EntityPlayerMP extends EntityPlayer implements ICrafting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void e(Entity entity) {
|
public void e(Entity entity) {
|
||||||
super.e(entity);
|
// CraftBukkit start
|
||||||
|
setPassengerOf(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPassengerOf(Entity entity) {
|
||||||
|
// e(null) doesn't really fly for overloaded methods,
|
||||||
|
// so this method is needed
|
||||||
|
|
||||||
|
//CraftBukkit end
|
||||||
|
super.setPassengerOf(entity);
|
||||||
a.b(((Packet) (new Packet39(((Entity) (this)), k))));
|
a.b(((Packet) (new Packet39(((Entity) (this)), k))));
|
||||||
a.a(p, q, r, v, w);
|
a.a(p, q, r, v, w);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user