say if its inverted
This commit is contained in:
parent
4bec49de5b
commit
2fac594315
@ -438,9 +438,10 @@ public class ExampleBaritoneControl implements Helper, AbstractGameEventListener
|
|||||||
String path = msg.substring("explorefilter".length()).trim();
|
String path = msg.substring("explorefilter".length()).trim();
|
||||||
String[] parts = path.split(" ");
|
String[] parts = path.split(" ");
|
||||||
Path path1 = Minecraft.getMinecraft().gameDir.toPath().resolve(parts[0]);
|
Path path1 = Minecraft.getMinecraft().gameDir.toPath().resolve(parts[0]);
|
||||||
|
boolean invert = parts.length > 1;
|
||||||
try {
|
try {
|
||||||
baritone.getExploreProcess().applyJsonFilter(path1, parts.length > 1);
|
baritone.getExploreProcess().applyJsonFilter(path1, invert);
|
||||||
logDirect("Loaded filter");
|
logDirect("Loaded filter. Inverted: " + invert);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logDirect("Unable to load " + path1);
|
logDirect("Unable to load " + path1);
|
||||||
|
Loading…
Reference in New Issue
Block a user