From 6f8d4c3a522d331ac7ef8b3157797d651900204d Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Sat, 27 Aug 2011 00:46:37 -0400 Subject: Fixed using custom PTAs for PlayerPortal event. --- src/main/java/net/minecraft/server/ServerConfigurationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/net') diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java index c7bb9f07..197a19f7 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); -- cgit v1.2.3