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
1 changed files with 1 additions and 1 deletions

View File

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