mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
Fix up NPE's in EntityMinecart/CraftVehicle and removed a little un-needed code in EntityArrow
By: speakeasy <mekevin1917@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@ public abstract class CraftVehicle extends CraftEntity implements Vehicle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Entity getPassenger() {
|
public Entity getPassenger() {
|
||||||
return (getHandle().j.getBukkitEntity());
|
return isEmpty()?null:(getHandle().j.getBukkitEntity());
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean setPassenger(Entity passenger) {
|
public boolean setPassenger(Entity passenger) {
|
||||||
|
Reference in New Issue
Block a user