Skip to content

Commit

Permalink
Rename default attribute modifiers constant
Browse files Browse the repository at this point in the history
  • Loading branch information
opekope2 committed Jan 16, 2024
1 parent 3f592ef commit 234dcf0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,12 @@ abstract class StaffItemHandler {
staffStack: ItemStack,
slot: EquipmentSlot
): Multimap<EntityAttribute, EntityAttributeModifier> {
return if (slot == EquipmentSlot.MAINHAND) DEFAULT_ATTRIBUTE_MODIFIERS
return if (slot == EquipmentSlot.MAINHAND) ATTRIBUTE_MODIFIERS
else ImmutableMultimap.of()
}

companion object {
private val DEFAULT_ATTRIBUTE_MODIFIERS = ImmutableMultimap.of(
private val ATTRIBUTE_MODIFIERS = ImmutableMultimap.of(
EntityAttributes.GENERIC_ATTACK_DAMAGE,
attackDamage(4.0),
EntityAttributes.GENERIC_ATTACK_SPEED,
Expand Down

0 comments on commit 234dcf0

Please sign in to comment.