summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlackHole <black-hole@live.com>2018-02-16 23:14:36 +0100
committerBlackHole <black-hole@live.com>2018-02-16 23:16:48 +0100
commitbacaf9274bb3c83b40e84d1671f4958e8298a491 (patch)
tree7bc08f128137c896b2df5cd57bcb0d1e1d7effed
parentfd702e4f44ddfa7122ef972b58fa8cc0d20adffb (diff)
downloadcraftbukkit-bacaf9274bb3c83b40e84d1671f4958e8298a491.tar
craftbukkit-bacaf9274bb3c83b40e84d1671f4958e8298a491.tar.gz
craftbukkit-bacaf9274bb3c83b40e84d1671f4958e8298a491.tar.lz
craftbukkit-bacaf9274bb3c83b40e84d1671f4958e8298a491.tar.xz
craftbukkit-bacaf9274bb3c83b40e84d1671f4958e8298a491.zip
SPIGOT-3824: Return the direct vehicle of an entity, not the root vehicle
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java2
1 files changed, 1 insertions, 1 deletions
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