fix: Limit dangerous pickaxe abilities on garden as well
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -35,6 +35,7 @@ private constructor(
|
||||
val PRIVATE_ISLAND = forMode("dynamic")
|
||||
val RIFT = forMode("rift")
|
||||
val MINESHAFT = forMode("mineshaft")
|
||||
val GARDEN = forMode("garden")
|
||||
}
|
||||
|
||||
val userFriendlyName
|
||||
|
||||
Reference in New Issue
Block a user