Skip to content

Commit

Permalink
Fix issue with mail not giving out items after a relog
Browse files Browse the repository at this point in the history
  • Loading branch information
Melledy committed Feb 7, 2024
1 parent 83b6e97 commit d136199
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/emu/lunarcore/game/inventory/Inventory.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d136199

Please sign in to comment.