add a way to pause builder

This commit is contained in:
Leijurv 2019-04-13 08:36:14 -07:00
parent fcadf68c90
commit 236d02cb47
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
2 changed files with 9 additions and 0 deletions

View File

@ -89,6 +89,10 @@ public class BuilderProcess extends BaritoneProcessHelper implements IBuilderPro
paused = false;
}
public void pause() {
paused = true;
}
@Override
public boolean build(String name, File schematic, Vec3i origin) {
NBTTagCompound tag;

View File

@ -358,6 +358,11 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
logDirect("resumed");
return true;
}
if (msg.equals("pause")) {
baritone.getBuilderProcess().pause();
logDirect("paused");
return true;
}
if (msg.equals("reset")) {
for (Settings.Setting setting : Baritone.settings().allSettings) {
setting.reset();