Skip to content

Commit 64f5f07

Browse files
committed
bug fix
1 parent c1c09e1 commit 64f5f07

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.jelly.CaneBuilder.processes;
22

3+
import com.jelly.CaneBuilder.handlers.KeyBindHandler;
34
import com.jelly.CaneBuilder.handlers.MacroHandler;
45
import com.jelly.CaneBuilder.utils.*;
56

@@ -133,7 +134,13 @@ public void onEnable() {
133134
currentState = State.START;
134135
ExecuteRunnable(new Thread(() -> {
135136
try {
137+
rotation.easeTo(AngleUtils.getClosest(), 89, 500);
136138
threadSleep(500);
139+
//AOTE
140+
mc.thePlayer.inventory.currentItem = 6;
141+
KeyBindHandler.setKeyBindState(keybindUseItem, true);
142+
threadSleep(200);
143+
KeyBindHandler.setKeyBindState(keybindUseItem, false);
137144
//autosell dirt
138145
threadSleep(500);
139146
mc.thePlayer.inventory.currentItem = 8;
@@ -149,7 +156,6 @@ public void onEnable() {
149156
threadSleep(500);
150157
mc.thePlayer.closeScreen();
151158
threadSleep(500);
152-
ProcessUtils.setRancherBootsTo200();
153159
//clear hotbar
154160
InventoryUtils.openInventory();
155161
for(int i = 0; i < 8; i++) {
@@ -161,13 +167,8 @@ public void onEnable() {
161167
Thread.sleep(500);
162168
mc.thePlayer.closeScreen();
163169
Thread.sleep(500);
164-
//init pos
165-
LogUtils.addCustomLog("Initializing place sugarcane");
166-
threadSleep(500);
167-
rotation.easeTo(AngleUtils.parallelToC1(), 50f, 1000);
168-
while (rotation.rotating)
169-
threadSleep(1);
170-
threadSleep(500);
170+
ProcessUtils.setRancherBootsTo200();
171+
Thread.sleep(500);
171172
lastState = State.START;
172173
currentState = State.NONE;
173174
targetBlockPos = new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ);

0 commit comments

Comments
 (0)