fine lmao no @Override

This commit is contained in:
Dewy REDACTED 2020-04-22 15:54:18 +01:00
parent 44b39a4ca8
commit f2a27e183c
No known key found for this signature in database
GPG Key ID: 0CAA84A783228505
2 changed files with 1 additions and 7 deletions

View File

@ -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();

View File

@ -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();
}