Reach doesn't need to use the flyingQueue.

This commit is contained in:
asofold 2017-05-05 09:24:44 +02:00
parent 4522bc0cb8
commit 2f66eab079
2 changed files with 2 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;