summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2015-01-09 16:59:18 +1100
committermd_5 <git@md-5.net>2015-01-09 16:59:40 +1100
commit4470462a54954109ebb39dcd0cc3bb4be983a050 (patch)
tree214bc87dcb6ef8e5adee6a4eb4eb44ffc84b7626 /src
parentba8f63080d2a6d89b3f98f48026c09b09a08b5c7 (diff)
downloadcraftbukkit-4470462a54954109ebb39dcd0cc3bb4be983a050.tar
craftbukkit-4470462a54954109ebb39dcd0cc3bb4be983a050.tar.gz
craftbukkit-4470462a54954109ebb39dcd0cc3bb4be983a050.tar.lz
craftbukkit-4470462a54954109ebb39dcd0cc3bb4be983a050.tar.xz
craftbukkit-4470462a54954109ebb39dcd0cc3bb4be983a050.zip
SPIGOT-387: Remove redundant custom vehicle handling.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
index dee0d4ef..705381f9 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
@@ -302,7 +302,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
public boolean setPassenger(org.bukkit.entity.Entity passenger) {
if (passenger instanceof CraftEntity) {
- ((CraftEntity) passenger).getHandle().setPassengerOf(getHandle());
+ ((CraftEntity) passenger).getHandle().mount(getHandle());
return true;
} else {
return false;
@@ -318,7 +318,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
return false;
}
- getHandle().passenger.setPassengerOf(null);
+ getHandle().passenger.mount(null);
return true;
}
@@ -414,7 +414,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
return false;
}
- getHandle().setPassengerOf(null);
+ getHandle().mount(null);
return true;
}