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); 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..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,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: