Skip to content

Commit d0ab9ed

Browse files
committed
style
1 parent 15626b0 commit d0ab9ed

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

  • src/main/java/meteordevelopment/meteorclient/systems/modules/combat

src/main/java/meteordevelopment/meteorclient/systems/modules/combat/AutoCity.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@
2424
import meteordevelopment.meteorclient.utils.render.color.SettingColor;
2525
import meteordevelopment.meteorclient.utils.world.BlockUtils;
2626
import meteordevelopment.orbit.EventHandler;
27+
import net.minecraft.block.Block;
2728
import net.minecraft.entity.player.PlayerEntity;
2829
import net.minecraft.item.Items;
29-
import net.minecraft.block.Block;
3030
import net.minecraft.network.packet.c2s.play.HandSwingC2SPacket;
3131
import net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket;
3232
import net.minecraft.util.Hand;
33+
import net.minecraft.util.hit.BlockHitResult;
3334
import net.minecraft.util.math.BlockPos;
3435
import net.minecraft.util.math.Direction;
3536
import net.minecraft.util.math.Vec3d;
36-
import net.minecraft.util.hit.BlockHitResult;
3737
import net.minecraft.world.RaycastContext;
3838

3939
import java.util.ArrayList;
40-
import java.util.List;
4140
import java.util.Comparator;
41+
import java.util.List;
4242

4343
public class AutoCity extends Module {
4444
private final SettingGroup sgGeneral = settings.getDefaultGroup();
@@ -175,7 +175,7 @@ public class AutoCity extends Module {
175175

176176
private final Setting<Boolean> swing = sgRender.add(new BoolSetting.Builder()
177177
.name("swing")
178-
.description("Whether to swing hand client-side.")
178+
.description("Whether to swing your hand client-side.")
179179
.defaultValue(false)
180180
.build()
181181
);
@@ -274,7 +274,7 @@ private void breakBlock(FindItemResult tool) {
274274
if (packetMine.get()) {
275275
boolean start = progress == 0 && !mining;
276276

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
278278
if ((start || progress >= 1) && hasPickaxe) {
279279
if (rotate.get()) Rotations.rotate(Rotations.getYaw(breakPos), Rotations.getPitch(breakPos), () -> packetMineBlock(tool, start));
280280
else packetMineBlock(tool, start);
@@ -366,7 +366,7 @@ private boolean isRiskyBreak(BlockPos blockPos) {
366366
Block block = mc.world.getBlockState(myBlockPos).getBlock();
367367
if (block.getBlastResistance() >= 600) return myBlockPos.equals(blockPos);
368368

369-
// Otherwise, make certain we arent breaking our own surround blocks
369+
// Otherwise, make certain we aren't breaking our own surround blocks
370370
for (Direction direction : DirectionAccessor.meteor$getHorizontal()) {
371371
BlockPos neighborPos = myBlockPos.offset(direction);
372372
if (neighborPos.equals(blockPos)) return true;
@@ -403,9 +403,7 @@ private boolean shouldPause() {
403403
if (pauseOnUse.get() && mc.player.isUsingItem()) return true;
404404

405405
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;
409407
}
410408

411409
@EventHandler

0 commit comments

Comments
 (0)