mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-29 11:57:59 +01:00
Minor change to recently added teleport enforcing to (hopefully) be
pre and post #888 compatible for now.
This commit is contained in:
parent
1ddd1ca6c9
commit
a37daefa63
@ -468,8 +468,6 @@ public class MovingCheck extends Check {
|
|||||||
|
|
||||||
data.worldChanged = !event.getFrom().getWorld().getName().equals(event.getTo().getWorld().getName());
|
data.worldChanged = !event.getFrom().getWorld().getName().equals(event.getTo().getWorld().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
data.teleportTo = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -584,10 +582,10 @@ public class MovingCheck extends Check {
|
|||||||
event.setTo(t);
|
event.setTo(t);
|
||||||
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
|
||||||
|
|
||||||
data.teleportTo = null;
|
data.teleportTo = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user