Fixed player teleportation

This commit is contained in:
Dinnerbone
2011-02-05 20:25:28 +00:00
parent 2be5181b0c
commit bf304ddc43
2 changed files with 3 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ import net.minecraft.server.WorldServer;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.craftbukkit.CraftWorld;
import org.bukkit.util.Vector;
public abstract class CraftEntity implements org.bukkit.entity.Entity {
@@ -105,6 +106,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
}
public void teleportTo(Location location) {
entity.world = ((CraftWorld)location.getWorld()).getHandle();
entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
}