Skip to content

Commit

Permalink
Revert to getHitBlockPosition()
Browse files Browse the repository at this point in the history
  • Loading branch information
Axionize committed Oct 26, 2024
1 parent 98cbf4a commit 619e50d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 619e50d

Please sign in to comment.