From bb16e6c5c16675e2523e1e375b24e0313d18a0a9 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Fri, 25 Nov 2011 20:05:51 +0000 Subject: [PATCH] Fixed portal event reporting wrong from-world --- .../java/net/minecraft/server/ServerConfigurationManager.java | 4 ++-- 1 file 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 1ff21bde27..000ea0f0fe 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; } }