diff --git a/src/main/java/emu/lunarcore/game/inventory/Inventory.java b/src/main/java/emu/lunarcore/game/inventory/Inventory.java index 9b3e2b236..61e06b44a 100644 --- a/src/main/java/emu/lunarcore/game/inventory/Inventory.java +++ b/src/main/java/emu/lunarcore/game/inventory/Inventory.java @@ -117,6 +117,12 @@ public boolean addItem(ItemExcel itemExcel, int count) { } public boolean addItem(GameItem item) { + // Set excel in case its missing + if (item.getExcel() == null) { + item.setExcel(GameData.getItemExcelMap().get(item.getItemId())); + } + + // Put item into inventory GameItem result = putItem(item); if (result != null) {