From 83f650771d4a91867abfc97f0afe42f6289f9e66 Mon Sep 17 00:00:00 2001 From: Dg636 Date: Tue, 5 Dec 2023 16:53:12 -0500 Subject: [PATCH] fix hypixel bedaura? --- .../features/module/modules/world/Fucker.kt | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/world/Fucker.kt b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/world/Fucker.kt index 67737206db..d8116a0e69 100644 --- a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/world/Fucker.kt +++ b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/world/Fucker.kt @@ -106,6 +106,16 @@ object Fucker : Module() { if (pos == null || Block.getIdFromBlock(BlockUtils.getBlock(pos)) != targetId || BlockUtils.getCenterDistance(pos!!) > rangeValue.get()) { pos = find(targetId) + + if (throughWallsValue.equals("Hypixel")) { + val blockPos = find(26)?: return + if (!BlockUtils.isFullBlock(blockPos.down()) || !BlockUtils.isFullBlock(blockPos.up()) || !BlockUtils.isFullBlock(blockPos.north()) || + !BlockUtils.isFullBlock(blockPos.east()) || !BlockUtils.isFullBlock(blockPos.south()) || !BlockUtils.isFullBlock(blockPos.west())) { + pos = blockPos.up()?: return + } else { + pos = blockPos?: return + } + } } // Reset current breaking when there is no target block @@ -120,7 +130,7 @@ object Fucker : Module() { // Surroundings var surroundings = false - if (surroundingsValue.get()) { + if (surroundingsValue.get() && !throughWallsValue.equals("Hypixel")) { val eyes = mc.thePlayer.getPositionEyes(1F) val blockPos = mc.theWorld.rayTraceBlocks(eyes, rotations.vec, false, false, true).blockPos @@ -136,6 +146,8 @@ object Fucker : Module() { } } + + // Reset switch timer when position changed if (oldPos != null && oldPos != currentPos) { currentDamage = 0F @@ -162,16 +174,6 @@ object Fucker : Module() { when { // Destory block actionValue.equals("destroy") || surroundings || !isRealBlock -> { - if (throughWallsValue.equals("Hypixel")) { - val blockPos = find(26)?: return - if (!BlockUtils.isFullBlock(blockPos.down()) || !BlockUtils.isFullBlock(blockPos.up()) || !BlockUtils.isFullBlock(blockPos.north()) || - !BlockUtils.isFullBlock(blockPos.east()) || !BlockUtils.isFullBlock(blockPos.south()) || !BlockUtils.isFullBlock(blockPos.west())) { - currentPos = blockPos.up()?: return - } else { - currentPos = blockPos?: return - } - } - // Auto Tool val autoTool = FDPClient.moduleManager[AutoTool::class.java]!!