From b9aaf3977c62e23ce4e0aa59988d770fffdedbb6 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Fri, 25 Nov 2011 21:10:16 +0000 Subject: [PATCH] Fixed NPE travelling to the nether from a custom 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 81398a6c58..51a8b76385 100644 --- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java @@ -308,7 +308,7 @@ public class ServerConfigurationManager { int dimension = i; WorldServer fromWorld = this.server.getWorldServer(entityplayer.dimension); WorldServer toWorld = null; - if (dimension < 10) { + if (entityplayer.dimension < 10) { for (WorldServer world : this.server.worlds) { if (world.dimension == dimension) { toWorld = world;