Call PacketItemAddHintNotify from addItem

This commit is contained in:
Melledy
2022-04-26 19:45:22 -07:00
parent 4420918f9c
commit d81895543f
6 changed files with 34 additions and 25 deletions

View File

@@ -144,13 +144,11 @@ public final class GiveCommand implements CommandHandler {
}
items.add(item);
}
player.getInventory().addItems(items);
player.sendPacket(new PacketItemAddHintNotify(items, ActionReason.SubfieldDrop));
player.getInventory().addItems(items, ActionReason.SubfieldDrop);
} else {
GenshinItem genshinItem = new GenshinItem(itemData);
genshinItem.setCount(amount);
player.getInventory().addItem(genshinItem);
player.sendPacket(new PacketItemAddHintNotify(genshinItem, ActionReason.SubfieldDrop));
player.getInventory().addItem(genshinItem, ActionReason.SubfieldDrop);
}
}
}