Skip to content

Commit

Permalink
small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelly298 committed Jul 23, 2022
1 parent fede2b8 commit 9006963
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/jelly/CaneBuilder/processes/PlaceSC.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/jelly/CaneBuilder/utils/ProcessUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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();
Expand Down

0 comments on commit 9006963

Please sign in to comment.