Fix bug when adding enchantments in anvil

This commit is contained in:
AJ Ferguson 2024-04-30 05:13:00 -04:00
parent dacacc6df8
commit 74d6a37261

View file

@ -387,7 +387,7 @@ public class AnvilInventoryUpdater extends InventoryUpdater {
}
return enchantments;
}
return Object2IntMaps.emptyMap();
return new Object2IntOpenHashMap<>();
}
private boolean isEnchantedBook(GeyserItemStack itemStack) {