diff options
author | EvilSeph <evilseph@gmail.com> | 2011-08-27 00:46:37 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-08-27 01:16:53 -0400 |
commit | 6f8d4c3a522d331ac7ef8b3157797d651900204d (patch) | |
tree | 7f1f5353683bd1d7003c4568bdd2672f7f925c0f /src | |
parent | 6e4b12cdf1f9b7fea617b54f0b7e0d083f4432a0 (diff) | |
download | craftbukkit-6f8d4c3a522d331ac7ef8b3157797d651900204d.tar craftbukkit-6f8d4c3a522d331ac7ef8b3157797d651900204d.tar.gz craftbukkit-6f8d4c3a522d331ac7ef8b3157797d651900204d.tar.lz craftbukkit-6f8d4c3a522d331ac7ef8b3157797d651900204d.tar.xz craftbukkit-6f8d4c3a522d331ac7ef8b3157797d651900204d.zip |
Fixed using custom PTAs for PlayerPortal event.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/ServerConfigurationManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |