Fixed combining items of different amounts

This commit is contained in:
Auxilor 2021-03-07 10:28:05 +00:00
parent 734effeaff
commit bb64f94399

View File

@ -116,6 +116,10 @@ public class AnvilMerge {
return new Pair<>(null, null);
}
if (left.getAmount() != right.getAmount()) {
return new Pair<>(null, null);
}
HashMap<Enchantment, Integer> leftEnchants = new HashMap<>();
HashMap<Enchantment, Integer> rightEnchants = new HashMap<>();