From 26bbd553050b241f272ed5e629565d3ac18fd42a Mon Sep 17 00:00:00 2001 From: noil755 Date: Sun, 1 Dec 2019 11:45:36 -0500 Subject: [PATCH] update to current master, updated nocrystal values --- .../seppuku/impl/module/combat/NoCrystalModule.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/me/rigamortis/seppuku/impl/module/combat/NoCrystalModule.java b/src/main/java/me/rigamortis/seppuku/impl/module/combat/NoCrystalModule.java index 954fed5..57f45d5 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/module/combat/NoCrystalModule.java +++ b/src/main/java/me/rigamortis/seppuku/impl/module/combat/NoCrystalModule.java @@ -5,7 +5,7 @@ import me.rigamortis.seppuku.api.event.EventStageable; import me.rigamortis.seppuku.api.event.player.EventUpdateWalkingPlayer; import me.rigamortis.seppuku.api.module.Module; import me.rigamortis.seppuku.api.util.MathUtil; -import me.rigamortis.seppuku.api.value.BooleanValue; +import me.rigamortis.seppuku.api.value.Value; import me.rigamortis.seppuku.impl.module.player.FreeCamModule; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; @@ -29,10 +29,8 @@ public final class NoCrystalModule extends Module { private final Minecraft mc = Minecraft.getMinecraft(); - public final BooleanValue disable = new BooleanValue("Disable", new String[]{"dis"}, false); - - // When false, NoCrystal will not place while the player is sneaking - public final BooleanValue sneak = new BooleanValue("PlaceOnSneak", new String[]{"sneak", "s", "pos", "sneakPlace"}, false); + public final Value disable = new Value("Disable", new String[]{"dis"}, "Automatically disable after it places.", false); + public final Value sneak = new Value("PlaceOnSneak", new String[]{"sneak", "s", "pos", "sneakPlace"}, "When false, NoCrystal will not place while the player is sneaking.", false); public NoCrystalModule() { super("NoCrystal", new String[]{"AntiCrystal", "FeetPlace"}, "Automatically places obsidian in 4 cardinal directions", "NONE", -1, ModuleType.COMBAT); @@ -66,7 +64,7 @@ public final class NoCrystalModule extends Module { final int slot = findStackHotbar(Blocks.OBSIDIAN); if (hasStack(Blocks.OBSIDIAN) || slot != -1) { if ((mc.player.onGround && playerSpeed <= 0.005f) - && (sneak.getBoolean() || (!mc.gameSettings.keyBindSneak.isKeyDown()))) { + && (this.sneak.getValue() || (!mc.gameSettings.keyBindSneak.isKeyDown()))) { lastSlot = mc.player.inventory.currentItem; mc.player.inventory.currentItem = slot; @@ -105,7 +103,7 @@ public final class NoCrystalModule extends Module { } mc.playerController.updateController(); - if(this.disable.getBoolean()) { + if (this.disable.getValue()) { this.toggle(); } }