Drop 1.8 support, improve IllegalInteract, drop rules engine for java 16, more refactoring

This commit is contained in:
Rammelkast committed 2021-09-09 14:41:49 +02:00
1 parent 71a9c9a9c7
commit a1f7a0cf7f
24 files changed
+632 -622

No files matched your search

@@ -93,6 +93,8 @@ public final class MovementManager {
public int riptideTicks;
// Time of last update
public long lastUpdate;
// Last location
public Location lastLocation;
@SuppressWarnings("deprecation")
public void handle(final Player player, final Location from, final Location to, final Distance distance) {
@@ -100,6 +102,8 @@ public final class MovementManager {
// This is checked for spoofing by "GroundFlight"
// Also seems to make NoFall cheats flag for speed lmao
this.onGround = player.isOnGround();
this.lastLocation = from;
final double x = distance.getXDifference();
final double z = distance.getZDifference();