aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-22 14:33:43 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-22 14:33:43 +0100
commitba79b46f64d541504b391dae17efb485a08e7745 (patch)
tree12582b708e6df55b88af5dd518c5e7ccc4709ec1 /src/main/kotlin/features
parentcdb5e60f52eea9030af9ca2d4a49913664023965 (diff)
downloadFirmament-ba79b46f64d541504b391dae17efb485a08e7745.tar.gz
Firmament-ba79b46f64d541504b391dae17efb485a08e7745.tar.bz2
Firmament-ba79b46f64d541504b391dae17efb485a08e7745.zip
fix: Limit dangerous pickaxe abilities on garden as well
Diffstat (limited to 'src/main/kotlin/features')
-rw-r--r--src/main/kotlin/features/mining/PickaxeAbility.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/features/mining/PickaxeAbility.kt b/src/main/kotlin/features/mining/PickaxeAbility.kt
index 2d6c3ee..a184c81 100644
--- a/src/main/kotlin/features/mining/PickaxeAbility.kt
+++ b/src/main/kotlin/features/mining/PickaxeAbility.kt
@@ -99,6 +99,7 @@ object PickaxeAbility : FirmamentFeature {
@Subscribe
fun onPickaxeRightClick(event: UseItemEvent) {
if (TConfig.blockOnPrivateIsland == BlockPickaxeAbility.NEVER) return
+ if (SBData.skyblockLocation != SkyBlockIsland.PRIVATE_ISLAND && SBData.skyblockLocation != SkyBlockIsland.GARDEN) return
val itemType = ItemType.fromItemStack(event.item)
if (itemType !in pickaxeTypes) return
val ability = AbilityUtils.getAbilities(event.item)