Fixed NPE travelling to the nether from a custom world

This commit is contained in:
Nathan Adams 2011-11-25 21:10:16 +00:00
parent 197fdbd84c
commit b9aaf3977c

View File

@ -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;