mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-01 16:20:26 +01:00
Fix one NPE.
This commit is contained in:
parent
85d925f45d
commit
01b8c421df
@ -129,7 +129,7 @@ public class Passable extends Check {
|
|||||||
// Prefer the set-back location from the data.
|
// Prefer the set-back location from the data.
|
||||||
if (data.hasSetBack()){
|
if (data.hasSetBack()){
|
||||||
final Location ref = data.getSetBack(to);
|
final Location ref = data.getSetBack(to);
|
||||||
if (BlockProperties.isPassable(from.getBlockCache(), ref) || TrigUtil.distance(from, loc) > 0.13){
|
if (BlockProperties.isPassable(from.getBlockCache(), ref) || loc != null && TrigUtil.distance(from, loc) > 0.13){
|
||||||
// if (BlockProperties.isPassableExact(from.getBlockCache(), ref)){
|
// if (BlockProperties.isPassableExact(from.getBlockCache(), ref)){
|
||||||
loc = ref;
|
loc = ref;
|
||||||
if (cc.debug) {
|
if (cc.debug) {
|
||||||
|
Loading…
Reference in New Issue
Block a user