mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-3824: Return the direct vehicle of an entity, not the root vehicle
By: BlackHole <black-hole@live.com>
This commit is contained in:
parent
c3bf431172
commit
17078ba66a
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…
Add table
Reference in a new issue