fixing "small cleanup" issues

This commit is contained in:
C10udburst
2022-01-12 19:08:26 +01:00
parent f29e75c25e
commit 459b158cd8
6 changed files with 14 additions and 14 deletions

View File

@@ -144,7 +144,7 @@ public class Auto32K extends Module {
}
phase += 1;
} else if (phase == 1) {
mc.player.getInventory().selectedSlot = dispenserSlot.getSlot();
mc.player.getInventory().selectedSlot = dispenserSlot.slot();
if (x == -1) {
mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.LookAndOnGround(-90f, mc.player.getPitch(), mc.player.isOnGround()));
} else if (x == 1) {
@@ -163,13 +163,13 @@ public class Auto32K extends Module {
phase += 1;
}else if (phase == 4 && mc.currentScreen instanceof Generic3x3ContainerScreen) {
mc.player.getSpeed();
InvUtils.move().from(shulkerSlot.getSlot()).toId(4);
InvUtils.move().from(shulkerSlot.slot()).toId(4);
phase += 1;
}else if (phase == 5 && mc.currentScreen instanceof Generic3x3ContainerScreen) {
mc.player.closeHandledScreen();
phase += 1;
}else if (phase == 6) {
mc.player.getInventory().selectedSlot = redstoneSlot.getSlot();
mc.player.getInventory().selectedSlot = redstoneSlot.slot();
mc.player.setSneaking(true);
mc.interactionManager.interactBlock(mc.player, mc.world, Hand.MAIN_HAND, new BlockHitResult(mc.player.getPos(), mc.player.getHorizontalFacing().getOpposite(), bestBlock.up(2), false));
mc.player.setSneaking(false);
@@ -302,7 +302,7 @@ public class Auto32K extends Module {
}
private boolean isValidSlot(FindItemResult findItemResult){
return findItemResult.getSlot() == -1 || findItemResult.getSlot() >= 9;
return findItemResult.slot() == -1 || findItemResult.slot() >= 9;
}
private List<Block> setDefaultBlocks(){