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

View File

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