add option to disable warnings for chunkfinder

This commit is contained in:
Bella 2019-12-19 11:58:32 -05:00
parent 286e055bbf
commit efc0c30878
1 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ import static org.lwjgl.opengl.GL11.*;
@Module.Info(name = "ChunkFinder", description = "Highlights newly generated chunks", category = Module.Category.RENDER)
public class ChunkFinder extends Module {
private Setting<Boolean> disable = register(Settings.b("Disable", true));
private Setting<Integer> yOffset = register(Settings.i("Y Offset", 0));
private Setting<Boolean> relative = register(Settings.b("Relative", true));
private Setting<Boolean> saveNewChunks = register(Settings.b("Save New Chunks", false));
@ -48,11 +49,11 @@ public class ChunkFinder extends Module {
@Override
public void onEnable() {
if (mc.player == null) return;
if (ModuleManager.getModuleByName("HoleESP").isEnabled()) {
if (ModuleManager.getModuleByName("HoleESP").isEnabled() && disable.getValue()) {
Command.sendChatMessage("[ChunkFinder] HoleESP is not compatible, disabling");
this.disable();
}
if (ModuleManager.getModuleByName("StorageESP").isEnabled()) {
if (ModuleManager.getModuleByName("StorageESP").isEnabled() && disable.getValue()) {
Command.sendChatMessage("[ChunkFinder] StorageESP is not compatible, disabling");
this.disable();
}