mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-15 03:51:20 +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.morePacketsCounter = 0;
|
||||||
data.morePacketsSetbackPoint = null;
|
data.morePacketsSetbackPoint = null;
|
||||||
data.jumpPhase = 0;
|
data.jumpPhase = 0;
|
||||||
|
|
||||||
|
if(newLocation != null) {
|
||||||
|
|
||||||
data.noclipX = newLocation.getBlockX();
|
data.noclipX = newLocation.getBlockX();
|
||||||
data.noclipY = Location.locToBlock(newLocation.getY()+1.1D);
|
data.noclipY = Location.locToBlock(newLocation.getY()+1.1D);
|
||||||
data.noclipZ = newLocation.getBlockZ();
|
data.noclipZ = newLocation.getBlockZ();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user