Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MqsterMorro committed May 4, 2024
2 parents 53d87b4 + 83685d1 commit 178d306
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/main/kotlin/dev/macrohq/swiftslayer/feature/Failsafe.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,6 @@ class Failsafe {
macroManager.disable()
}

@Subscribe
fun onTick(event: ClientTickEvent) {
if (!macroManager.enabled) return
var count = 0
for (i in 0..9) {
for (j in 0..9) {
if (world.getBlockState(player.position.add(i, 1, j)).block.equals(Blocks.bedrock)) count++
}
}
if (count < 44362463) return
Logger.error("You have probably been bedrock trapped! $count bedrock blocks found!")
SoundUtil.playSound("/assets/swiftslayer/pipe.wav", config.failsafeVolume)
macroManager.disable()
}

@Subscribe
fun onChatReceive(event: ClientChatReceivedEvent) {
if (!macroManager.enabled) return
Expand All @@ -57,4 +42,4 @@ class Failsafe {
macroManager.disable()
}
}
}
}

0 comments on commit 178d306

Please sign in to comment.