Skip to content

Commit

Permalink
fix hypixel bedaura?
Browse files Browse the repository at this point in the history
  • Loading branch information
C00LC0D35 authored Dec 5, 2023
1 parent c67f90e commit 83f6507
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -136,6 +146,8 @@ object Fucker : Module() {
}
}



// Reset switch timer when position changed
if (oldPos != null && oldPos != currentPos) {
currentDamage = 0F
Expand All @@ -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]!!
Expand Down

0 comments on commit 83f6507

Please sign in to comment.