Skip to content

Commit

Permalink
fix(DisablerVulcanRiptide): player.inventory.offHand[0] -> `player.…
Browse files Browse the repository at this point in the history
…offHandStack`
  • Loading branch information
DataM0del committed Feb 7, 2025
1 parent 87ad54c commit 1d03fc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ internal object DisablerVulcanRiptide : ToggleableConfigurable(ModuleDisabler, "
}

private fun checkItem(): Boolean {
val offhand = player.inventory.offHand[0]
val offhand = player.offHandStack
return (offhand.item == Items.TRIDENT && offhand.hasEnchantments() &&
offhand.getEnchantment(Enchantments.RIPTIDE) != 0)
}
Expand Down

0 comments on commit 1d03fc1

Please sign in to comment.