Fixed player teleporting not working with a certain method. This fixes BUKKIT-198

By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot
2011-12-04 13:22:31 +00:00
parent 2d41f1d696
commit 63318d575f

View File

@@ -153,7 +153,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
} }
public boolean teleport(Location location) { public boolean teleport(Location location) {
return teleport(this, TeleportCause.PLUGIN); return teleport(location, TeleportCause.PLUGIN);
} }
public boolean teleport(Location location, TeleportCause cause) { public boolean teleport(Location location, TeleportCause cause) {