|
24 | 24 | import meteordevelopment.meteorclient.utils.render.color.SettingColor; |
25 | 25 | import meteordevelopment.meteorclient.utils.world.BlockUtils; |
26 | 26 | import meteordevelopment.orbit.EventHandler; |
| 27 | +import net.minecraft.block.Block; |
27 | 28 | import net.minecraft.entity.player.PlayerEntity; |
28 | 29 | import net.minecraft.item.Items; |
29 | | -import net.minecraft.block.Block; |
30 | 30 | import net.minecraft.network.packet.c2s.play.HandSwingC2SPacket; |
31 | 31 | import net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket; |
32 | 32 | import net.minecraft.util.Hand; |
| 33 | +import net.minecraft.util.hit.BlockHitResult; |
33 | 34 | import net.minecraft.util.math.BlockPos; |
34 | 35 | import net.minecraft.util.math.Direction; |
35 | 36 | import net.minecraft.util.math.Vec3d; |
36 | | -import net.minecraft.util.hit.BlockHitResult; |
37 | 37 | import net.minecraft.world.RaycastContext; |
38 | 38 |
|
39 | 39 | import java.util.ArrayList; |
40 | | -import java.util.List; |
41 | 40 | import java.util.Comparator; |
| 41 | +import java.util.List; |
42 | 42 |
|
43 | 43 | public class AutoCity extends Module { |
44 | 44 | private final SettingGroup sgGeneral = settings.getDefaultGroup(); |
@@ -175,7 +175,7 @@ public class AutoCity extends Module { |
175 | 175 |
|
176 | 176 | private final Setting<Boolean> swing = sgRender.add(new BoolSetting.Builder() |
177 | 177 | .name("swing") |
178 | | - .description("Whether to swing hand client-side.") |
| 178 | + .description("Whether to swing your hand client-side.") |
179 | 179 | .defaultValue(false) |
180 | 180 | .build() |
181 | 181 | ); |
@@ -274,7 +274,7 @@ private void breakBlock(FindItemResult tool) { |
274 | 274 | if (packetMine.get()) { |
275 | 275 | boolean start = progress == 0 && !mining; |
276 | 276 |
|
277 | | - // Packets are only sent twice- at the beginning and end of the mining process |
| 277 | + // Packets are only sent twice - at the beginning and end of the mining process |
278 | 278 | if ((start || progress >= 1) && hasPickaxe) { |
279 | 279 | if (rotate.get()) Rotations.rotate(Rotations.getYaw(breakPos), Rotations.getPitch(breakPos), () -> packetMineBlock(tool, start)); |
280 | 280 | else packetMineBlock(tool, start); |
@@ -366,7 +366,7 @@ private boolean isRiskyBreak(BlockPos blockPos) { |
366 | 366 | Block block = mc.world.getBlockState(myBlockPos).getBlock(); |
367 | 367 | if (block.getBlastResistance() >= 600) return myBlockPos.equals(blockPos); |
368 | 368 |
|
369 | | - // Otherwise, make certain we arent breaking our own surround blocks |
| 369 | + // Otherwise, make certain we aren't breaking our own surround blocks |
370 | 370 | for (Direction direction : DirectionAccessor.meteor$getHorizontal()) { |
371 | 371 | BlockPos neighborPos = myBlockPos.offset(direction); |
372 | 372 | if (neighborPos.equals(blockPos)) return true; |
@@ -403,9 +403,7 @@ private boolean shouldPause() { |
403 | 403 | if (pauseOnUse.get() && mc.player.isUsingItem()) return true; |
404 | 404 |
|
405 | 405 | CrystalAura CA = Modules.get().get(CrystalAura.class); |
406 | | - if (pauseOnCA.get() && CA.isActive() && CA.kaTimer > 0) return true; |
407 | | - |
408 | | - return false; |
| 406 | + return pauseOnCA.get() && CA.isActive() && CA.kaTimer > 0; |
409 | 407 | } |
410 | 408 |
|
411 | 409 | @EventHandler |
|
0 commit comments