summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNathan Adams <dinnerbone@dinnerbone.com>2011-12-04 13:22:31 +0000
committerNathan Adams <dinnerbone@dinnerbone.com>2011-12-04 13:22:31 +0000
commit1185ca75fcc5ed9c1aeed85d145de7c6763646ef (patch)
treef494e3bca4cc0ff203cd6d7c3c1c09487a672e4d /src
parent1dbebb459319ee5ed698d788d70b09dd0bda1e34 (diff)
downloadcraftbukkit-1185ca75fcc5ed9c1aeed85d145de7c6763646ef.tar
craftbukkit-1185ca75fcc5ed9c1aeed85d145de7c6763646ef.tar.gz
craftbukkit-1185ca75fcc5ed9c1aeed85d145de7c6763646ef.tar.lz
craftbukkit-1185ca75fcc5ed9c1aeed85d145de7c6763646ef.tar.xz
craftbukkit-1185ca75fcc5ed9c1aeed85d145de7c6763646ef.zip
Fixed player teleporting not working with a certain method. This fixes BUKKIT-198
Diffstat (limited to 'src')
-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 ccd65475..8701d4b7 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
@@ -153,7 +153,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
}
public boolean teleport(Location location) {
- return teleport(this, TeleportCause.PLUGIN);
+ return teleport(location, TeleportCause.PLUGIN);
}
public boolean teleport(Location location, TeleportCause cause) {