forked from RepoMirrors/kami-blue
fine lmao no @Override
This commit is contained in:
parent
44b39a4ca8
commit
f2a27e183c
|
@ -31,14 +31,12 @@ public class Baritone extends Module {
|
|||
|
||||
public Setting<Boolean> renderGoal = register(Settings.b("Render Goals", true));
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
MessageSendHelper.sendErrorMessage("Error: The Baritone module is for configuring Baritone integration, not toggling it.");
|
||||
enable();
|
||||
}
|
||||
|
||||
// ._.
|
||||
@Override
|
||||
public void onUpdate() {
|
||||
BaritoneAPI.getSettings().allowBreak.value = allowBreak.getValue();
|
||||
BaritoneAPI.getSettings().allowSprint.value = allowSprint.getValue();
|
||||
|
|
|
@ -19,8 +19,6 @@ import static me.zeroeightsix.kami.util.MathsUtils.normalizeAngle;
|
|||
public class BaritoneWalk extends Module {
|
||||
public static String direction;
|
||||
|
||||
// Very shittily done, but this check is not that taxing on performance cos it is NOT performed every tick.
|
||||
@Override
|
||||
protected void onEnable() {
|
||||
if (normalizeAngle(mc.player.rotationYaw) >= -22.5 && normalizeAngle(mc.player.rotationYaw) <= 22.5) { // +Z
|
||||
BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalXZ((int) mc.player.posX, (int) mc.player.posZ + 1068));
|
||||
|
@ -57,12 +55,10 @@ public class BaritoneWalk extends Module {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getHudInfo() {
|
||||
return direction;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
protected void onDisable() {
|
||||
BaritoneAPI.getProvider().getPrimaryBaritone().getPathingBehavior().cancelEverything();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue