From bfa1bbe84fcae5bd4932d7962b3b61975b2a6366 Mon Sep 17 00:00:00 2001 From: noil <33181454+uoil@users.noreply.github.com> Date: Tue, 24 Aug 2021 18:14:15 -0400 Subject: [PATCH 1/3] Update NoLagModule.java nolag light false by default --- .../me/rigamortis/seppuku/impl/module/render/NoLagModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/rigamortis/seppuku/impl/module/render/NoLagModule.java b/src/main/java/me/rigamortis/seppuku/impl/module/render/NoLagModule.java index 31d1ebd..0cb19a2 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/module/render/NoLagModule.java +++ b/src/main/java/me/rigamortis/seppuku/impl/module/render/NoLagModule.java @@ -36,7 +36,7 @@ import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; */ public final class NoLagModule extends Module { - public final Value light = new Value("Light", new String[]{"Lit", "l"}, "Choose to enable the lighting lag fix. Disables lighting updates.", true); + public final Value light = new Value("Light", new String[]{"Lit", "l"}, "Choose to enable the lighting lag fix. Disables lighting updates.", false); public final Value signs = new Value("Signs", new String[]{"Sign", "si"}, "Choose to enable the sign lag fix. Disables the rendering of sign text.", false); public final Value sounds = new Value("Sounds", new String[]{"Sound", "s"}, "Choose to enable the sound lag fix. Disable entity swap-item/equip sound.", true); public final Value fluids = new Value("Fluids", new String[]{"Fluid", "f", "Liquids", "liq", "Water", "Lava"}, "Disables the rendering of all fluids.", false); From b6d8bc74d63e321b62e77b2978ad8d5ce317f0bf Mon Sep 17 00:00:00 2001 From: noil Date: Wed, 25 Aug 2021 18:13:20 -0400 Subject: [PATCH 2/3] AutoFarm: add ModeHarvestRClick for auto-farming --- .../seppuku/impl/module/world/AutoFarmModule.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/rigamortis/seppuku/impl/module/world/AutoFarmModule.java b/src/main/java/me/rigamortis/seppuku/impl/module/world/AutoFarmModule.java index b10b80b..5640d0c 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/module/world/AutoFarmModule.java +++ b/src/main/java/me/rigamortis/seppuku/impl/module/world/AutoFarmModule.java @@ -26,6 +26,8 @@ import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; public final class AutoFarmModule extends Module { public final Value mode = new Value("Mode", new String[]{"Mode", "m"}, "The current farming mode.", Mode.HARVEST); + public final Value modeHarvestRClick = new Value("ModeHarvestRClick", new String[]{"HarvestRightClick", "HarvestRClick", "hrc","mhrc"}, "Should we right click instead of breaking when harvesting? (Modpacks)", false); + public final Value range = new Value("Range", new String[]{"Range", "Reach", "r"}, "The range in blocks your player should reach to farm.", 4.0f, 1.0f, 9.0f, 0.1f); public final Value rotate = new Value("Rotate", new String[]{"rot"}, "Should we rotate the player's head when Auto-Farming?", true); @@ -92,10 +94,12 @@ public final class AutoFarmModule extends Module { private void doFarming(final Minecraft mc) { switch (mode.getValue()) { case HARVEST: - if (mc.playerController.onPlayerDamageBlock(currentBlockPos, EntityUtil.getFacingDirectionToPosition(currentBlockPos))) { - mc.player.swingArm(EnumHand.MAIN_HAND); + if (!this.modeHarvestRClick.getValue()) { // if false: break to harvest (vanilla) + if (mc.playerController.onPlayerDamageBlock(currentBlockPos, EntityUtil.getFacingDirectionToPosition(currentBlockPos))) { + mc.player.swingArm(EnumHand.MAIN_HAND); + } + break; } - break; case PLANT: case HOE: case BONEMEAL: From 5f9c32b3675a4bc9620eb21d39935cec1d319a7d Mon Sep 17 00:00:00 2001 From: noil Date: Wed, 25 Aug 2021 18:17:04 -0400 Subject: [PATCH 3/3] AutoFarm: code formatting --- .../me/rigamortis/seppuku/impl/module/world/AutoFarmModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/rigamortis/seppuku/impl/module/world/AutoFarmModule.java b/src/main/java/me/rigamortis/seppuku/impl/module/world/AutoFarmModule.java index 5640d0c..3f4baa8 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/module/world/AutoFarmModule.java +++ b/src/main/java/me/rigamortis/seppuku/impl/module/world/AutoFarmModule.java @@ -26,7 +26,7 @@ import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; public final class AutoFarmModule extends Module { public final Value mode = new Value("Mode", new String[]{"Mode", "m"}, "The current farming mode.", Mode.HARVEST); - public final Value modeHarvestRClick = new Value("ModeHarvestRClick", new String[]{"HarvestRightClick", "HarvestRClick", "hrc","mhrc"}, "Should we right click instead of breaking when harvesting? (Modpacks)", false); + public final Value modeHarvestRClick = new Value("ModeHarvestRClick", new String[]{"HarvestRightClick", "HarvestRClick", "hrc", "mhrc"}, "Should we right click instead of breaking when harvesting? (Modpacks)", false); public final Value range = new Value("Range", new String[]{"Range", "Reach", "r"}, "The range in blocks your player should reach to farm.", 4.0f, 1.0f, 9.0f, 0.1f); public final Value rotate = new Value("Rotate", new String[]{"rot"}, "Should we rotate the player's head when Auto-Farming?", true);