fix: Limit dangerous pickaxe abilities on garden as well
This commit is contained in:
@@ -99,6 +99,7 @@ object PickaxeAbility : FirmamentFeature {
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
fun onPickaxeRightClick(event: UseItemEvent) {
|
fun onPickaxeRightClick(event: UseItemEvent) {
|
||||||
if (TConfig.blockOnPrivateIsland == BlockPickaxeAbility.NEVER) return
|
if (TConfig.blockOnPrivateIsland == BlockPickaxeAbility.NEVER) return
|
||||||
|
if (SBData.skyblockLocation != SkyBlockIsland.PRIVATE_ISLAND && SBData.skyblockLocation != SkyBlockIsland.GARDEN) return
|
||||||
val itemType = ItemType.fromItemStack(event.item)
|
val itemType = ItemType.fromItemStack(event.item)
|
||||||
if (itemType !in pickaxeTypes) return
|
if (itemType !in pickaxeTypes) return
|
||||||
val ability = AbilityUtils.getAbilities(event.item)
|
val ability = AbilityUtils.getAbilities(event.item)
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ private constructor(
|
|||||||
val PRIVATE_ISLAND = forMode("dynamic")
|
val PRIVATE_ISLAND = forMode("dynamic")
|
||||||
val RIFT = forMode("rift")
|
val RIFT = forMode("rift")
|
||||||
val MINESHAFT = forMode("mineshaft")
|
val MINESHAFT = forMode("mineshaft")
|
||||||
|
val GARDEN = forMode("garden")
|
||||||
}
|
}
|
||||||
|
|
||||||
val userFriendlyName
|
val userFriendlyName
|
||||||
|
|||||||
Reference in New Issue
Block a user