mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Fixed displaying 0-levelled enchantments
This commit is contained in:
parent
dd14aa5e4c
commit
c40219693e
@ -208,6 +208,8 @@ public final class EnchantDisplay {
|
||||
enchantments.putAll(meta.getEnchants());
|
||||
}
|
||||
|
||||
enchantments.entrySet().removeIf(enchantmentIntegerEntry -> enchantmentIntegerEntry.getValue().equals(0));
|
||||
|
||||
List<Enchantment> unsorted = new ArrayList<>();
|
||||
enchantments.forEach((enchantment, integer) -> {
|
||||
unsorted.add(enchantment);
|
||||
|
Loading…
Reference in New Issue
Block a user