SPIGOT-3824: Return the direct vehicle of an entity, not the root vehicle

This commit is contained in:
BlackHole 2018-02-16 23:14:36 +01:00
parent fd702e4f44
commit bacaf9274b

View File

@ -507,7 +507,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
return null;
}
return getHandle().getVehicle().getBukkitEntity();
return getHandle().bJ().getBukkitEntity(); // PAIL: rename getVehicle() -> getRootVehicle(), bJ() -> getVehicle()
}
@Override