From 1185ca75fcc5ed9c1aeed85d145de7c6763646ef Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sun, 4 Dec 2011 13:22:31 +0000 Subject: Fixed player teleporting not working with a certain method. This fixes BUKKIT-198 --- src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/bukkit') 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) { -- cgit v1.2.3