Skip to content

Commit

Permalink
Remove logspam
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSharp committed May 26, 2024
1 parent 0c09441 commit f9a8aa0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/baritone/utils/GuiClick.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,11 @@ public void render(PoseStack stack, int mouseX, int mouseY, float partialTicks)
Vec3 far = toWorld(mx, my, 1); // "Use 0.945 that's what stack overflow says" - leijurv

if (near != null && far != null) {
///
Vec3 viewerPos = new Vec3(PathRenderer.posX(), PathRenderer.posY(), PathRenderer.posZ());
LocalPlayer player = BaritoneAPI.getProvider().getPrimaryBaritone().getPlayerContext().player();
HitResult result = player.level.clip(new ClipContext(near.add(viewerPos), far.add(viewerPos), ClipContext.Block.OUTLINE, ClipContext.Fluid.NONE, player));
if (result != null && result.getType() == HitResult.Type.BLOCK) {
currentMouseOver = ((BlockHitResult) result).getBlockPos();
System.out.println("currentMouseOver = " + currentMouseOver);
}
}
}
Expand Down

0 comments on commit f9a8aa0

Please sign in to comment.