From 1185ca75fcc5ed9c1aeed85d145de7c6763646ef Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sun, 4 Dec 2011 13:22:31 +0000 Subject: [PATCH] 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(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index ccd6547554..8701d4b74a 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) {