Fixed displaying 0-levelled enchantments

This commit is contained in:
Auxilor 2020-11-16 18:41:51 +00:00
parent dd14aa5e4c
commit c40219693e

View File

@ -208,6 +208,8 @@ public final class EnchantDisplay {
enchantments.putAll(meta.getEnchants()); enchantments.putAll(meta.getEnchants());
} }
enchantments.entrySet().removeIf(enchantmentIntegerEntry -> enchantmentIntegerEntry.getValue().equals(0));
List<Enchantment> unsorted = new ArrayList<>(); List<Enchantment> unsorted = new ArrayList<>();
enchantments.forEach((enchantment, integer) -> { enchantments.forEach((enchantment, integer) -> {
unsorted.add(enchantment); unsorted.add(enchantment);