From 619e50dd6a1d9c6a25f7714b885b1af5ca4f3ddc Mon Sep 17 00:00:00 2001 From: Axionize <154778082+Axionize@users.noreply.github.com> Date: Sat, 26 Oct 2024 17:08:53 -0400 Subject: [PATCH] Revert to getHitBlockPosition() --- .../caseload/knockbacksync/command/subcommand/PingCommand.java | 2 -- .../main/java/me/caseload/knockbacksync/player/PlayerData.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/main/java/me/caseload/knockbacksync/command/subcommand/PingCommand.java b/common/src/main/java/me/caseload/knockbacksync/command/subcommand/PingCommand.java index 34caac7..66dea19 100644 --- a/common/src/main/java/me/caseload/knockbacksync/command/subcommand/PingCommand.java +++ b/common/src/main/java/me/caseload/knockbacksync/command/subcommand/PingCommand.java @@ -1,6 +1,5 @@ package me.caseload.knockbacksync.command.subcommand; -import com.mojang.realmsclient.client.Ping; import me.caseload.knockbacksync.Base; import me.caseload.knockbacksync.ConfigWrapper; import me.caseload.knockbacksync.command.generic.BuilderCommand; @@ -13,7 +12,6 @@ import me.caseload.knockbacksync.util.ChatUtil; import org.incendo.cloud.CommandManager; import org.incendo.cloud.permission.PredicatePermission; -import sun.security.krb5.Config; import java.util.UUID; import java.util.function.Predicate; diff --git a/common/src/main/java/me/caseload/knockbacksync/player/PlayerData.java b/common/src/main/java/me/caseload/knockbacksync/player/PlayerData.java index e4db2d0..10c1516 100644 --- a/common/src/main/java/me/caseload/knockbacksync/player/PlayerData.java +++ b/common/src/main/java/me/caseload/knockbacksync/player/PlayerData.java @@ -256,7 +256,7 @@ public double getDistanceToGround() { if (result == null || result.getHitBlock() == null) continue; - collisionDist = Math.min(collisionDist, corner.getY() - result.getHitPosition().getY()); + collisionDist = Math.min(collisionDist, corner.getY() - result.getHitBlockPosition().getY()); } return collisionDist - 1;