Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelly298 committed Jul 17, 2022
1 parent c1c09e1 commit 64f5f07
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/main/java/com/jelly/CaneBuilder/processes/PlaceSC.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.jelly.CaneBuilder.processes;

import com.jelly.CaneBuilder.handlers.KeyBindHandler;
import com.jelly.CaneBuilder.handlers.MacroHandler;
import com.jelly.CaneBuilder.utils.*;

Expand Down Expand Up @@ -133,7 +134,13 @@ public void onEnable() {
currentState = State.START;
ExecuteRunnable(new Thread(() -> {
try {
rotation.easeTo(AngleUtils.getClosest(), 89, 500);
threadSleep(500);
//AOTE
mc.thePlayer.inventory.currentItem = 6;
KeyBindHandler.setKeyBindState(keybindUseItem, true);
threadSleep(200);
KeyBindHandler.setKeyBindState(keybindUseItem, false);
//autosell dirt
threadSleep(500);
mc.thePlayer.inventory.currentItem = 8;
Expand All @@ -149,7 +156,6 @@ public void onEnable() {
threadSleep(500);
mc.thePlayer.closeScreen();
threadSleep(500);
ProcessUtils.setRancherBootsTo200();
//clear hotbar
InventoryUtils.openInventory();
for(int i = 0; i < 8; i++) {
Expand All @@ -161,13 +167,8 @@ public void onEnable() {
Thread.sleep(500);
mc.thePlayer.closeScreen();
Thread.sleep(500);
//init pos
LogUtils.addCustomLog("Initializing place sugarcane");
threadSleep(500);
rotation.easeTo(AngleUtils.parallelToC1(), 50f, 1000);
while (rotation.rotating)
threadSleep(1);
threadSleep(500);
ProcessUtils.setRancherBootsTo200();
Thread.sleep(500);
lastState = State.START;
currentState = State.NONE;
targetBlockPos = new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ);
Expand Down

0 comments on commit 64f5f07

Please sign in to comment.