File tree Expand file tree Collapse file tree
src/main/java/meteordevelopment/meteorclient/systems/modules/combat Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88import meteordevelopment .meteorclient .events .render .Render3DEvent ;
99import meteordevelopment .meteorclient .events .world .TickEvent ;
10+ import meteordevelopment .meteorclient .mixin .DirectionAccessor ;
1011import meteordevelopment .meteorclient .renderer .ShapeMode ;
1112import meteordevelopment .meteorclient .settings .*;
1213import meteordevelopment .meteorclient .systems .modules .Categories ;
@@ -329,7 +330,7 @@ public BlockPos getBlockToMine(PlayerEntity player) {
329330
330331 // Otherwise, break their surround blocks
331332 List <BlockPos > blocks = new ArrayList <>();
332- for (Direction direction : Direction . HORIZONTAL ) {
333+ for (Direction direction : DirectionAccessor . meteor$getHorizontal () ) {
333334 BlockPos neighborPos = targetPos .offset (direction );
334335 if (canMineBlock (neighborPos ) && !isRiskyBreak (neighborPos )) {
335336 blocks .add (neighborPos );
@@ -366,7 +367,7 @@ private boolean isRiskyBreak(BlockPos blockPos) {
366367 if (block .getBlastResistance () >= 600 ) return myBlockPos .equals (blockPos );
367368
368369 // Otherwise, make certain we arent breaking our own surround blocks
369- for (Direction direction : Direction . HORIZONTAL ) {
370+ for (Direction direction : DirectionAccessor . meteor$getHorizontal () ) {
370371 BlockPos neighborPos = myBlockPos .offset (direction );
371372 if (neighborPos .equals (blockPos )) return true ;
372373 }
You can’t perform that action at this time.
0 commit comments