fix: mail claiming item (#1758)

* Update build-and-test.yml

* Update build-and-test.yml

* Update build-and-test.yml

* Update build-and-test.yml

* Update build-and-test.yml

* Update build-and-test.yml

* specify up to 3.31

* fix: mail claiming item

tested that I can claim an item without an error
This commit is contained in:
David Markowitz
2025-04-02 06:56:01 -07:00
committed by GitHub
parent c490d45fe0
commit 20d5a9b6d8
3 changed files with 11 additions and 6 deletions

View File

@@ -181,6 +181,7 @@ namespace Mail {
void AttachmentCollectRequest::Handle() {
AttachmentCollectResponse response;
response.mailID = mailID;
auto inv = player->GetComponent<InventoryComponent>();
if (mailID > 0 && playerID == player->GetObjectID() && inv) {