mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-28 10:21:22 +01:00
Fix (harmless) NPE in case of portal usage with disabled nether.
This commit is contained in:
parent
fbd078209c
commit
ad92e67256
@ -82,8 +82,12 @@ public class PlayerTeleportEventManager extends PlayerListener {
|
|||||||
data.morePacketsSetbackPoint = null;
|
data.morePacketsSetbackPoint = null;
|
||||||
data.jumpPhase = 0;
|
data.jumpPhase = 0;
|
||||||
|
|
||||||
data.noclipX = newLocation.getBlockX();
|
if(newLocation != null) {
|
||||||
data.noclipY = Location.locToBlock(newLocation.getY()+1.1D);
|
|
||||||
data.noclipZ = newLocation.getBlockZ();
|
data.noclipX = newLocation.getBlockX();
|
||||||
|
data.noclipY = Location.locToBlock(newLocation.getY()+1.1D);
|
||||||
|
data.noclipZ = newLocation.getBlockZ();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user