Skip to content

Commit e77960c

Browse files
committed
Update BaritoneMiner.java
1 parent 4d5ace0 commit e77960c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/me/redcarlos/netherfreedom/modules/main/BaritoneMiner.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ private void start() {
352352

353353
// Finds the direction for one block to get to the other
354354
private Direction findBlockDir(BlockPos originBlock, BlockPos goalBlock) {
355-
// Very bad this can very easily break if the 2 blocks positions are not inline with each other
356355
BlockPos vec3d = BlockPos.ofFloored(Math.signum(goalBlock.getX() - originBlock.getX()), 0, Math.signum(goalBlock.getZ() - originBlock.getZ()));
357356
return Direction.getFacing(Vec3d.of(vec3d));
358357
}
@@ -373,7 +372,6 @@ private void setGoal(BlockPos goal) {
373372
baritone.getCustomGoalProcess().setGoalAndPath(new GoalBlock(goal));
374373
}
375374

376-
// Extremely monkey way of finding distance between 2 blocks
377375
private int findDistance(BlockPos pos1, BlockPos pos2, Direction dir) {
378376
int dist = 0;
379377
switch (dir) {

0 commit comments

Comments
 (0)