mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01:00
Fixed Vehicle.eject() not ejecting players properly.
This commit is contained in:
parent
be6cd7ed9c
commit
e6e50ddf9b
1 changed files with 10 additions and 1 deletions
|
@ -194,7 +194,16 @@ public class EntityPlayerMP extends EntityPlayer implements ICrafting {
|
|||
}
|
||||
|
||||
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.a(p, q, r, v, w);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue