mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
We always know playerSAO when calling SendInventory. Using it instead of searching it via peer_id
This commit is contained in:
parent
bbed01ab62
commit
7e088fdfe3
4 changed files with 12 additions and 12 deletions
|
@ -1391,7 +1391,7 @@ void Server::handleCommand_Interact(NetworkPacket* pkt)
|
|||
|
||||
// Apply returned ItemStack
|
||||
if (playersao->setWieldedItem(item)) {
|
||||
SendInventory(pkt->getPeerId());
|
||||
SendInventory(playersao);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue