From 1a852a06a3b3c61a83f10ea4c82cee3b9b8c896a Mon Sep 17 00:00:00 2001 From: Jess Date: Sat, 1 Jun 2024 02:17:13 +0100 Subject: [PATCH] fix funnies --- .../java/com/baseband/client/feature/world/FastBreak.java | 8 +++++++- .../com/baseband/client/mixins/IPlayerControllerMP.java | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Client/src/main/java/com/baseband/client/feature/world/FastBreak.java b/Client/src/main/java/com/baseband/client/feature/world/FastBreak.java index d801e41..47dcb06 100644 --- a/Client/src/main/java/com/baseband/client/feature/world/FastBreak.java +++ b/Client/src/main/java/com/baseband/client/feature/world/FastBreak.java @@ -19,7 +19,10 @@ public class FastBreak extends Feature { } @Config("Mode") - Mode mode = Mode.Damage; + public Mode mode = Mode.Damage; + + @Config("NoBreakDelay") + public boolean noBreakDelay; enum Mode { Damage, @@ -39,6 +42,9 @@ public class FastBreak extends Feature { public void damageBlock(DamageBlockEvent event) { + if(noBreakDelay) { + ((IPlayerControllerMP) (mc.playerController)).setBlockHitDelay(0); + } if (mode == Mode.Packet) { mc.player.swingArm(EnumHand.MAIN_HAND); mc.player.connection.sendPacket(new CPacketPlayerDigging(CPacketPlayerDigging.Action.START_DESTROY_BLOCK, event.getBlockPos(), event.getEnumFacing())); diff --git a/Client/src/main/java/com/baseband/client/mixins/IPlayerControllerMP.java b/Client/src/main/java/com/baseband/client/mixins/IPlayerControllerMP.java index 3498362..c97810a 100644 --- a/Client/src/main/java/com/baseband/client/mixins/IPlayerControllerMP.java +++ b/Client/src/main/java/com/baseband/client/mixins/IPlayerControllerMP.java @@ -11,4 +11,7 @@ public interface IPlayerControllerMP { @Accessor("curBlockDamageMP") void setDamage(float damage); + + @Accessor("blockHitDelay") + void setBlockHitDelay(int delay); }