File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
src/main/java/me/redcarlos/netherfreedom/modules/main Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments