Fix (harmless) NPE in case of portal usage with disabled nether.

This commit is contained in:
Evenprime 2011-09-10 18:53:16 +02:00
parent fbd078209c
commit ad92e67256

View File

@ -82,8 +82,12 @@ public class PlayerTeleportEventManager extends PlayerListener {
data.morePacketsSetbackPoint = null;
data.jumpPhase = 0;
if(newLocation != null) {
data.noclipX = newLocation.getBlockX();
data.noclipY = Location.locToBlock(newLocation.getY()+1.1D);
data.noclipZ = newLocation.getBlockZ();
}
}
}