From 6f8d4c3a522d331ac7ef8b3157797d651900204d Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Sat, 27 Aug 2011 00:46:37 -0400 Subject: [PATCH] Fixed using custom PTAs for PlayerPortal event. --- .../java/net/minecraft/server/ServerConfigurationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java index c7bb9f073d..197a19f719 100644 --- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java @@ -299,7 +299,7 @@ public class ServerConfigurationManager { Location finalLocation = event.getTo(); if (event.useTravelAgent()) { - finalLocation = pta.findOrCreate(finalLocation); + finalLocation = event.getPortalTravelAgent().findOrCreate(finalLocation); } toWorld = ((CraftWorld) finalLocation.getWorld()).getHandle(); this.moveToWorld(entityplayer, toWorld.dimension, finalLocation);