Skip to content

Commit 9006963

Browse files
committed
small bug fix
1 parent fede2b8 commit 9006963

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/com/jelly/CaneBuilder/processes/PlaceSC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public void run() {
243243
LogUtils.addCustomLog("Finished buying sugarcane from bazaar");
244244

245245
} else {
246-
LogUtils.addCustomLog("Didn't open bazaar. Disabling script");
246+
MacroHandler.disableScript("Didn't open bazaar. Disabling script");
247247
}
248248
} else if (!InventoryUtils.hasSugarcaneInHotbar()) {
249249
LogUtils.addCustomLog("Preparing to move sugarcane to hotbar");

src/main/java/com/jelly/CaneBuilder/utils/ProcessUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public static void switchLayer(){
2525
try {
2626
BuilderState.isSwitchingLayer = true;
2727
Thread.sleep(2000);
28+
MacroHandler.playerRotation.easeTo(AngleUtils.getClosest(), 89, 800);
29+
Thread.sleep(1000);
2830
mc.thePlayer.inventory.currentItem = 8;
2931
Thread.sleep(100);
3032
if(mc.currentScreen == null)
@@ -44,10 +46,8 @@ public static void switchLayer(){
4446
clickWindow(mc.thePlayer.openContainer.windowId, InventoryUtils.getFirstSlotWithDirt(), 0, 1);
4547
Thread.sleep(500);
4648
mc.thePlayer.closeScreen();
49+
disableJumpPotion();
4750
mc.thePlayer.inventory.currentItem = 0;
48-
Thread.sleep(500);
49-
MacroHandler.playerRotation.easeTo(AngleUtils.getClosest(), 89, 2000);
50-
Thread.sleep(2200);
5151
while(((int)mc.thePlayer.posY - BuilderState.corner1.getY() < 8)){
5252
if (jumpCooldown.passed()) {
5353
resetKeybindState();

0 commit comments

Comments
 (0)