Skip to content

Commit

Permalink
fix: enum name
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Dec 28, 2024
1 parent 1738161 commit d7b43df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ internal object NoSlowSlowness : ToggleableConfigurable(ModuleNoSlow, "Slowness"

private fun setSlownessMultiplier(multiplier: Float) {
val slowness = player.activeStatusEffects[StatusEffects.SLOWNESS]?.amplifier ?: return
player.attributes.getCustomInstance(EntityAttributes.GENERIC_MOVEMENT_SPEED)?.updateModifier(
player.attributes.getCustomInstance(EntityAttributes.MOVEMENT_SPEED)?.updateModifier(
EntityAttributeModifier(
Identifier.of("effect.slowness"),
-multiplier * (slowness + 1.0),
Expand Down

0 comments on commit d7b43df

Please sign in to comment.