File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/java/nekiplay/meteorplus/mixin/meteorclient/modules Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 23
23
import net .minecraft .util .hit .HitResult ;
24
24
import net .minecraft .util .math .BlockPos ;
25
25
import net .minecraft .util .math .Vec3d ;
26
+ import org .jetbrains .annotations .Nullable ;
26
27
import org .lwjgl .glfw .GLFW ;
27
28
import org .spongepowered .asm .mixin .Mixin ;
28
29
import org .spongepowered .asm .mixin .Unique ;
@@ -177,7 +178,7 @@ private BlockPos tryGetValidPos(BlockPos pos) {
177
178
}
178
179
}
179
180
180
- @ Unique
181
+ @ Unique @ Nullable
181
182
private BlockPos rayCastClicked () {
182
183
BlockPos blockPos = null ;
183
184
Vec3d rotationVector = RaycastUtils .getRotationVector ((float ) freecam .getPitch (mc .getTickDelta ()), (float ) freecam .getYaw (mc .getTickDelta ()));
@@ -212,7 +213,7 @@ private void Work(Cancellable event) {
212
213
event .cancel ();
213
214
}
214
215
}
215
- if (baritoneMoveKey .get ().isPressed ()) {
216
+ if (baritoneMoveKey .get ().isPressed () && mc . currentScreen == null ) {
216
217
BlockPos clicked = rayCastClicked ();
217
218
if (clicked == null ) return ;
218
219
@@ -233,7 +234,7 @@ private void Work(Cancellable event) {
233
234
event .cancel ();
234
235
}
235
236
236
- if (baritoneStopKey .get ().isPressed ()) {
237
+ if (baritoneStopKey .get ().isPressed () && mc . currentScreen == null ) {
237
238
BaritoneAPI .getProvider ().getPrimaryBaritone ().getPathingBehavior ().forceCancel ();
238
239
if (blink != null ) {
239
240
if (blink .isActive ()) {
You can’t perform that action at this time.
0 commit comments