aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-09-03 09:34:00 +0200
committerGitHub <noreply@github.com>2024-09-03 09:34:00 +0200
commite4f56d693a4c6cebb43006bfa507444d614072ca (patch)
tree98fe8e626d02932db618e45f1f9ff7a8a4ea9eec /src/main/java/at
parent1ba3116df7de192df384c16b4ba02cb922fcc735 (diff)
downloadskyhanni-e4f56d693a4c6cebb43006bfa507444d614072ca.tar.gz
skyhanni-e4f56d693a4c6cebb43006bfa507444d614072ca.tar.bz2
skyhanni-e4f56d693a4c6cebb43006bfa507444d614072ca.zip
Fix: Pity Counter (#2436)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/MiningAPI.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/MiningAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/MiningAPI.kt
index e97d25c52..ecf90172d 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/MiningAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/MiningAPI.kt
@@ -164,7 +164,8 @@ object MiningAPI {
@SubscribeEvent
fun onBlockChange(event: ServerBlockChangeEvent) {
if (!inCustomMiningIsland()) return
- if (event.newState.block != Blocks.air) return
+ if (event.newState.block.let { it != Blocks.air && it != Blocks.bedrock }) return
+ if (event.oldState.block.let { it == Blocks.air || it == Blocks.bedrock }) return
if (event.oldState.block == Blocks.air) return
val pos = event.location
if (pos.distanceToPlayer() > 7) return