mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 22:18:58 +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 null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return getHandle().getVehicle().getBukkitEntity();
|
return getHandle().bJ().getBukkitEntity(); // PAIL: rename getVehicle() -> getRootVehicle(), bJ() -> getVehicle()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue