Skip to content

Commit

Permalink
otland#4536 close parcel send thru mail system to other player
Browse files Browse the repository at this point in the history
  • Loading branch information
gesior committed Sep 19, 2023
1 parent 31d6e85 commit 9916458
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3094,6 +3094,12 @@ void Player::postRemoveNotification(Thing* thing, const Cylinder* newParent, int
if (!isOwner) {
autoCloseContainers(container);
}
} else if (const Inbox* inboxContainer = dynamic_cast<const Inbox*>(topContainer)) {
if (inboxContainer == inbox) {
onSendContainer(container);
} else {
autoCloseContainers(container);
}
} else {
onSendContainer(container);
}
Expand Down

0 comments on commit 9916458

Please sign in to comment.