Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
chneau committed Oct 20, 2023
1 parent 300d0d6 commit 695e638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/chneau/autotool/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static BlockPos getTargetedBlock(MinecraftClient client) {
var y = (pos.y - cameraPos.y > 0) ? WEE : -WEE;
var z = (pos.z - cameraPos.z > 0) ? WEE : -WEE;
pos = pos.add(x, y, z);
return new BlockPos(pos);
return new BlockPos.Mutable(pos.x, pos.y, pos.z);
}

public static boolean isCurrentPlayer(PlayerEntity other) {
Expand Down

0 comments on commit 695e638

Please sign in to comment.