mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-06-28 23:34:43 +02:00
Reach doesn't need to use the flyingQueue.
This commit is contained in:
parent
4522bc0cb8
commit
2f66eab079
|
@ -203,7 +203,7 @@ public class BlockInteractListener extends CheckListener {
|
|||
if (blockChecks) {
|
||||
// First the reach check.
|
||||
if (!cancelled && reach.isEnabled(player)
|
||||
&& reach.check(player, loc, block, flyingHandle, data, cc)) {
|
||||
&& reach.check(player, loc, block, data, cc)) {
|
||||
cancelled = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ import fr.neatmonster.nocheatplus.actions.ParameterName;
|
|||
import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
import fr.neatmonster.nocheatplus.checks.net.FlyingQueueHandle;
|
||||
import fr.neatmonster.nocheatplus.utilities.location.TrigUtil;
|
||||
|
||||
/**
|
||||
|
@ -54,7 +53,7 @@ public class Reach extends Check {
|
|||
* @return true, if successful
|
||||
*/
|
||||
public boolean check(final Player player, final Location loc, final Block block,
|
||||
final FlyingQueueHandle flyingHandle, final BlockInteractData data, final BlockInteractConfig cc) {
|
||||
final BlockInteractData data, final BlockInteractConfig cc) {
|
||||
|
||||
boolean cancel = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user