Fixed Streamlining enchantment (who could know that higher speed is slower in spigot api world)

This commit is contained in:
_OfTeN_ 2021-11-01 14:13:44 +03:00
parent 86eec1b706
commit 6fb4e1b321

View File

@ -23,6 +23,6 @@ public class Streamlining extends EcoEnchant {
return;
}
player.setWalkSpeed((float) (0.2 + (level * EcoEnchants.STREAMLINING.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "speed-per-level"))));
player.setWalkSpeed((float) (0.2f - (level * this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "speed-per-level"))));
}
}