mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-02 13:57:49 +01:00
Fix NPE in MovingListener.
This commit is contained in:
parent
3ba0f93cb3
commit
5f18deb341
@ -178,7 +178,8 @@ public class MovingData extends ACheckData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void resetPositions(final Location loc){
|
public void resetPositions(final Location loc){
|
||||||
resetPositions(loc.getX(), loc.getY(), loc.getZ());
|
if (loc == null) resetPositions(Double.MAX_VALUE, 0, 0);
|
||||||
|
else resetPositions(loc.getX(), loc.getY(), loc.getZ());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void resetPositions(final double x, final double y, final double z) {
|
public void resetPositions(final double x, final double y, final double z) {
|
||||||
|
Loading…
Reference in New Issue
Block a user