diff options
author | sk89q <the.sk89q@gmail.com> | 2011-01-12 22:39:15 -0800 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-01-12 22:40:06 -0800 |
commit | e6e50ddf9b7cb9fe4fb5e8102acf117db2db6f2a (patch) | |
tree | d82e8e8a0f33ced84ef875ee56371c682bd59e54 /src/main/java/net/minecraft | |
parent | be6cd7ed9ccb6155d9a91b633ef1e79687b16e3c (diff) | |
download | craftbukkit-e6e50ddf9b7cb9fe4fb5e8102acf117db2db6f2a.tar craftbukkit-e6e50ddf9b7cb9fe4fb5e8102acf117db2db6f2a.tar.gz craftbukkit-e6e50ddf9b7cb9fe4fb5e8102acf117db2db6f2a.tar.lz craftbukkit-e6e50ddf9b7cb9fe4fb5e8102acf117db2db6f2a.tar.xz craftbukkit-e6e50ddf9b7cb9fe4fb5e8102acf117db2db6f2a.zip |
Fixed Vehicle.eject() not ejecting players properly.
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityPlayerMP.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityPlayerMP.java b/src/main/java/net/minecraft/server/EntityPlayerMP.java index ee13cbce..1e1f0b55 100644 --- a/src/main/java/net/minecraft/server/EntityPlayerMP.java +++ b/src/main/java/net/minecraft/server/EntityPlayerMP.java @@ -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); } |