mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Merge 7425126f6b
into 499f2284bd
This commit is contained in:
commit
3bc998587e
8 changed files with 169 additions and 2 deletions
|
@ -740,6 +740,14 @@ void Server::handleCommand_InventoryAction(NetworkPacket* pkt)
|
|||
|
||||
if (!check_inv_access(ca->craft_inv))
|
||||
return;
|
||||
}
|
||||
/*
|
||||
Handle HotbarSlotSelected action special cases
|
||||
*/
|
||||
else if (a->getType() == IAction::HotbarSlotSelected) {
|
||||
IHotbarSlotSelectedAction *ha = (IHotbarSlotSelectedAction*)a.get();
|
||||
ha->inv.applyCurrentPlayer(player->getName());
|
||||
// Note: `IHotbarSlotSelectedAction::clientApply` is empty, thus nothing to revert.
|
||||
} else {
|
||||
// Unknown action. Ignored.
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue