mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-14 19:41:21 +01:00
Fix (harmless) NPE in case of portal usage with disabled nether.
This commit is contained in:
parent
fbd078209c
commit
ad92e67256
@ -81,9 +81,13 @@ public class PlayerTeleportEventManager extends PlayerListener {
|
||||
data.morePacketsCounter = 0;
|
||||
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();
|
||||
data.noclipX = newLocation.getBlockX();
|
||||
data.noclipY = Location.locToBlock(newLocation.getY()+1.1D);
|
||||
data.noclipZ = newLocation.getBlockZ();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user