From 197fdbd84c49db6cad3cbebf636739b491d5cdd0 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Fri, 25 Nov 2011 20:54:29 +0000 Subject: [PATCH] Nether portals should now only work in the default world --- .../java/net/minecraft/server/ServerConfigurationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java index 000ea0f0fe..81398a6c58 100644 --- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java @@ -320,7 +320,7 @@ public class ServerConfigurationManager { Location toLocation = null; if (toWorld != null) { - if ((dimension == -1) || (dimension == 0)) { + if (((dimension == -1) || (dimension == 0)) && ((entityplayer.dimension == -1) || (entityplayer.dimension == 0))) { double blockRatio = dimension == 0 ? 8 : 0.125; toLocation = toWorld == null ? null : new Location(toWorld.getWorld(), (entityplayer.locX * blockRatio), entityplayer.locY, (entityplayer.locZ * blockRatio), entityplayer.yaw, entityplayer.pitch);