[O] Automatically enable mine with seed on command
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
package org.hydev.hyritone;
|
package org.hydev.hyritone;
|
||||||
|
|
||||||
|
import baritone.Baritone;
|
||||||
import baritone.api.IBaritone;
|
import baritone.api.IBaritone;
|
||||||
import baritone.api.command.Command;
|
import baritone.api.command.Command;
|
||||||
import baritone.api.command.argument.IArgConsumer;
|
import baritone.api.command.argument.IArgConsumer;
|
||||||
@@ -26,6 +27,7 @@ import java.util.Arrays;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
|
import static org.hydev.hyritone.Hyritone.seedServerCache;
|
||||||
import static org.hydev.hyritone.MiscUtils.print;
|
import static org.hydev.hyritone.MiscUtils.print;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -47,7 +49,7 @@ public class TestCommand extends Command
|
|||||||
@Override
|
@Override
|
||||||
public void execute(String label, IArgConsumer args) throws CommandException
|
public void execute(String label, IArgConsumer args) throws CommandException
|
||||||
{
|
{
|
||||||
if (Hyritone.seedServerCache.enabled = !Hyritone.seedServerCache.enabled)
|
if (Baritone.settings().mineWithSeed.value = seedServerCache.enabled = !seedServerCache.enabled)
|
||||||
{
|
{
|
||||||
print("Seed xray enabled");
|
print("Seed xray enabled");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user