fix xray not saving

This commit is contained in:
Bella 2020-03-07 14:52:57 -05:00
parent 651e21ea15
commit 80236d5d9b
No known key found for this signature in database
GPG Key ID: 03B01AC937D1C89C
1 changed files with 3 additions and 3 deletions

View File

@ -37,17 +37,17 @@ public class XRay extends Module {
refreshHiddenBlocksSet(value);
if (isEnabled())
mc.renderGlobal.loadRenderers();
}));
}).build());
public Setting<Boolean> invert = register(Settings.booleanBuilder("Invert").withValue(false).withConsumer((old, value) -> {
invertStatic = value;
if (isEnabled())
mc.renderGlobal.loadRenderers();
}));
}).build());
private Setting<Boolean> outlines = register(Settings.booleanBuilder("Outlines").withValue(true).withConsumer((old, value) -> {
outlinesStatic = value;
if (isEnabled())
mc.renderGlobal.loadRenderers();
}));
}).build());
// A static mirror of the state.
private static Set<Block> hiddenBlocks = Collections.synchronizedSet(new HashSet<>());