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);