mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-04 02:01:44 +01:00
SPIGOT-3824: Return the direct vehicle of an entity, not the root vehicle
This commit is contained in:
parent
fd702e4f44
commit
bacaf9274b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue