From bacaf9274bb3c83b40e84d1671f4958e8298a491 Mon Sep 17 00:00:00 2001 From: BlackHole Date: Fri, 16 Feb 2018 23:14:36 +0100 Subject: SPIGOT-3824: Return the direct vehicle of an entity, not the root vehicle --- src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 27ae8475..961cf24c 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -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 -- cgit v1.2.3