Fix #101, small change to lag determination and fix 1.8.8 combat checks not working

This commit is contained in:
Rammelkast committed 2020-08-06 13:48:38 +02:00
1 parent 16c778c17f
commit 5f181c556e
6 files changed
+30 -15

No files matched your search

@@ -144,7 +144,7 @@ public class FlightCheck {
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "groundFlight") && movementManager.onGround
&& Utilities.cantStandAt(distance.getTo().getBlock().getRelative(BlockFace.DOWN))
&& Utilities.cantStandAt(distance.getFrom().getBlock().getRelative(BlockFace.DOWN))
&& Utilities.cantStandAt(distance.getTo().getBlock()) && movementManager.groundTicks > 2) {
&& Utilities.cantStandAt(distance.getTo().getBlock())) {
return new CheckResult(CheckResult.Result.FAILED,
"faked ground to fly (mY=" + movementManager.motionY + ", gt=" + movementManager.groundTicks + ")");
}