diff --git a/src/main/java/com/jelly/CaneBuilder/processes/PlaceSC.java b/src/main/java/com/jelly/CaneBuilder/processes/PlaceSC.java index 53bfb82..366e4f7 100644 --- a/src/main/java/com/jelly/CaneBuilder/processes/PlaceSC.java +++ b/src/main/java/com/jelly/CaneBuilder/processes/PlaceSC.java @@ -243,7 +243,7 @@ public void run() { LogUtils.addCustomLog("Finished buying sugarcane from bazaar"); } else { - LogUtils.addCustomLog("Didn't open bazaar. Disabling script"); + MacroHandler.disableScript("Didn't open bazaar. Disabling script"); } } else if (!InventoryUtils.hasSugarcaneInHotbar()) { LogUtils.addCustomLog("Preparing to move sugarcane to hotbar"); diff --git a/src/main/java/com/jelly/CaneBuilder/utils/ProcessUtils.java b/src/main/java/com/jelly/CaneBuilder/utils/ProcessUtils.java index d89e166..ebd650e 100644 --- a/src/main/java/com/jelly/CaneBuilder/utils/ProcessUtils.java +++ b/src/main/java/com/jelly/CaneBuilder/utils/ProcessUtils.java @@ -25,6 +25,8 @@ public static void switchLayer(){ try { BuilderState.isSwitchingLayer = true; Thread.sleep(2000); + MacroHandler.playerRotation.easeTo(AngleUtils.getClosest(), 89, 800); + Thread.sleep(1000); mc.thePlayer.inventory.currentItem = 8; Thread.sleep(100); if(mc.currentScreen == null) @@ -44,10 +46,8 @@ public static void switchLayer(){ clickWindow(mc.thePlayer.openContainer.windowId, InventoryUtils.getFirstSlotWithDirt(), 0, 1); Thread.sleep(500); mc.thePlayer.closeScreen(); + disableJumpPotion(); mc.thePlayer.inventory.currentItem = 0; - Thread.sleep(500); - MacroHandler.playerRotation.easeTo(AngleUtils.getClosest(), 89, 2000); - Thread.sleep(2200); while(((int)mc.thePlayer.posY - BuilderState.corner1.getY() < 8)){ if (jumpCooldown.passed()) { resetKeybindState();