say if its inverted

This commit is contained in:
Leijurv 2019-04-22 14:36:12 -07:00
parent 4bec49de5b
commit 2fac594315
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 3 additions and 2 deletions

View File

@ -438,9 +438,10 @@ public class ExampleBaritoneControl implements Helper, AbstractGameEventListener
String path = msg.substring("explorefilter".length()).trim();
String[] parts = path.split(" ");
Path path1 = Minecraft.getMinecraft().gameDir.toPath().resolve(parts[0]);
boolean invert = parts.length > 1;
try {
baritone.getExploreProcess().applyJsonFilter(path1, parts.length > 1);
logDirect("Loaded filter");
baritone.getExploreProcess().applyJsonFilter(path1, invert);
logDirect("Loaded filter. Inverted: " + invert);
} catch (Exception e) {
e.printStackTrace();
logDirect("Unable to load " + path1);