Fix #108, update XMaterial, start BoatFly

This commit is contained in:
Rammelkast committed 2020-08-27 11:11:47 +02:00
1 parent 768331011e
commit 8de7ae1c59
4 files changed
+301 -166

No files matched your search

@@ -101,7 +101,7 @@ public class FlightCheck {
&& !Utilities.couldBeOnBoat(player)
&& (System.currentTimeMillis() - movementManager.lastTeleport >= checksConfig
.getInteger(CheckType.FLIGHT, "airFlight", "accountForTeleports"))
&& !VersionUtil.isSlowFalling(player) && !Utilities.isInWeb(player)
&& !VersionUtil.isSlowFalling(player) && !Utilities.isNearWeb(player)
&& movementManager.elytraEffectTicks <= 25)
return new CheckResult(CheckResult.Result.FAILED, "AirFlight", "had too little Y dropoff (diff="
+ Math.abs(movementManager.motionY - movementManager.lastMotionY) + ")");
@@ -155,7 +155,7 @@ public class FlightCheck {
&& movementManager.motionY < 0 && !backend.justVelocity(player)
&& (System.currentTimeMillis() - movementManager.lastTeleport >= checksConfig
.getInteger(CheckType.FLIGHT, "gravity", "accountForTeleports"))
&& !Utilities.isInWeb(player) && movementManager.elytraEffectTicks <= 25
&& !Utilities.isNearWeb(player) && movementManager.elytraEffectTicks <= 25
&& !VersionUtil.isSlowFalling(player)) {
double gravitatedY = (movementManager.lastMotionY - 0.08) * GRAVITY_FRICTION;
double offset = Math.abs(gravitatedY - movementManager.motionY);