mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-12 21:34:35 +01:00
Fix issue with mail not giving out items after a relog
This commit is contained in:
@@ -117,6 +117,12 @@ public class Inventory extends BasePlayerManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean addItem(GameItem item) {
|
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);
|
GameItem result = putItem(item);
|
||||||
|
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user