Update CraftBukkit to Minecraft 1.5.2

By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
CraftBukkit/Spigot
2013-04-27 04:40:05 -05:00
parent f06e7acda5
commit 9fdae1c35b
8 changed files with 21 additions and 17 deletions

View File

@@ -41,13 +41,13 @@ public class CraftTravelAgent extends PortalTravelAgent implements TravelAgent {
}
public Location findPortal(Location location) {
PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().s();
PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().t(); // Should be getTravelAgent
ChunkCoordinates found = pta.findPortal(location.getX(), location.getY(), location.getZ(), this.getSearchRadius());
return found != null ? new Location(location.getWorld(), found.x, found.y, found.z, location.getYaw(), location.getPitch()) : null;
}
public boolean createPortal(Location location) {
PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().s();
PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().t();
return pta.createPortal(location.getX(), location.getY(), location.getZ(), this.getCreationRadius());
}