Skip to content

Commit

Permalink
fix(movement-speed): remove modifier before adding it
Browse files Browse the repository at this point in the history
fix #14
  • Loading branch information
Silthus committed Jan 15, 2021
1 parent f0c2f1f commit 561cc6f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ private void addSpeed(Player player) {
AttributeInstance attribute = player.getAttribute(Attribute.GENERIC_MOVEMENT_SPEED);
if (attribute == null) return;
if (!applied) {
attribute.removeModifier(attributeModifier);
attribute.addModifier(attributeModifier);
applied = true;
}
Expand Down

0 comments on commit 561cc6f

Please sign in to comment.