mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
We always know playerSAO when calling SendInventory. Using it instead of searching it via peer_id
This commit is contained in:
@@ -1391,7 +1391,7 @@ void Server::handleCommand_Interact(NetworkPacket* pkt)
|
||||
|
||||
// Apply returned ItemStack
|
||||
if (playersao->setWieldedItem(item)) {
|
||||
SendInventory(pkt->getPeerId());
|
||||
SendInventory(playersao);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user