mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-10 19:32:10 +00:00
Formspec: Show a player inventory using core.show_formspec (#15963)
'core.show_formspec' now shows and updates the inventory formspec as if it was opened using the hotkey on client-side.
This commit is contained in:
parent
d41de3da79
commit
fdc149f316
10 changed files with 59 additions and 23 deletions
|
@ -178,6 +178,7 @@ const ClientCommandFactory clientCommandFactoryTable[TOCLIENT_NUM_MSG_TYPES] =
|
|||
{ "TOCLIENT_STOP_SOUND", 0, true }, // 0x40
|
||||
{ "TOCLIENT_PRIVILEGES", 0, true }, // 0x41
|
||||
{ "TOCLIENT_INVENTORY_FORMSPEC", 0, true }, // 0x42
|
||||
// ^ `channel` MUST be the same as TOCLIENT_SHOW_FORMSPEC
|
||||
{ "TOCLIENT_DETACHED_INVENTORY", 0, true }, // 0x43
|
||||
{ "TOCLIENT_SHOW_FORMSPEC", 0, true }, // 0x44
|
||||
{ "TOCLIENT_MOVEMENT", 0, true }, // 0x45
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue