diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-25 20:05:51 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-25 20:05:51 +0000 |
commit | bb16e6c5c16675e2523e1e375b24e0313d18a0a9 (patch) | |
tree | 4e4f3188146667df3afe662d3a76fd3438248b65 /src/main/java | |
parent | a105ec32b388987d97d69a2ced7fdf498b1f747c (diff) | |
download | craftbukkit-bb16e6c5c16675e2523e1e375b24e0313d18a0a9.tar craftbukkit-bb16e6c5c16675e2523e1e375b24e0313d18a0a9.tar.gz craftbukkit-bb16e6c5c16675e2523e1e375b24e0313d18a0a9.tar.lz craftbukkit-bb16e6c5c16675e2523e1e375b24e0313d18a0a9.tar.xz craftbukkit-bb16e6c5c16675e2523e1e375b24e0313d18a0a9.zip |
Fixed portal event reporting wrong from-world
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/ServerConfigurationManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java index 1ff21bde..000ea0f0 100644 --- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java @@ -306,11 +306,11 @@ public class ServerConfigurationManager { public void a(EntityPlayer entityplayer, int i) { // CraftBukkit start -- Replaced the standard handling of portals with a more customised method. int dimension = i; - WorldServer fromWorld = this.server.getWorldServer(dimension); + WorldServer fromWorld = this.server.getWorldServer(entityplayer.dimension); WorldServer toWorld = null; if (dimension < 10) { for (WorldServer world : this.server.worlds) { - if (world.dimension == i) { + if (world.dimension == dimension) { toWorld = world; } } |