Skip to content

Commit

Permalink
Pickonimbus swapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Niroxbtw authored Apr 30, 2023
1 parent 193a4af commit 1941e43
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import com.jelly.MightyMiner.baritone.automine.structures.BlockType;
import com.jelly.MightyMiner.baritone.automine.structures.Path;
import com.jelly.MightyMiner.handlers.KeybindHandler;
import com.jelly.MightyMiner.handlers.MacroHandler;
import com.jelly.MightyMiner.macros.macros.CommissionMacro;
import com.jelly.MightyMiner.player.Rotation;
import com.jelly.MightyMiner.render.BlockRenderer;
import com.jelly.MightyMiner.utils.AngleUtils;
Expand Down Expand Up @@ -214,7 +216,11 @@ public void onTickEvent(TickEvent.ClientTickEvent event){
break;
case MINING:
BlockPos targetMineBlock = blocksInPath.getLast().getPos();
mc.thePlayer.inventory.currentItem = PlayerUtils.getItemInHotbar("Pick", "Drill", "Gauntlet");
if (MacroHandler.macros.get(4).isEnabled()) {
mc.thePlayer.inventory.currentItem = CommissionMacro.getPickaxeSlot();
} else {
mc.thePlayer.inventory.currentItem = PlayerUtils.getItemInHotbar(false, "Pick", "Gauntlet", "Drill");
}
KeybindHandler.updateKeys(
false, false, false, false,
mc.objectMouseOver != null && mc.objectMouseOver.getBlockPos() != null &&
Expand Down

0 comments on commit 1941e43

Please sign in to comment.