mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-12 21:54:06 +01:00
SPIGOT-3824: Return the direct vehicle of an entity, not the root vehicle
This commit is contained in:
parent
fd702e4f44
commit
bacaf9274b
@ -507,7 +507,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return getHandle().getVehicle().getBukkitEntity();
|
return getHandle().bJ().getBukkitEntity(); // PAIL: rename getVehicle() -> getRootVehicle(), bJ() -> getVehicle()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user