mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Add formspec theming using prepended strings
This commit is contained in:
parent
040b878cd5
commit
2323842dd3
16 changed files with 150 additions and 18 deletions
|
@ -1324,6 +1324,15 @@ void Client::handleCommand_SrpBytesSandB(NetworkPacket* pkt)
|
|||
Send(&resp_pkt);
|
||||
}
|
||||
|
||||
void Client::handleCommand_FormspecPrepend(NetworkPacket *pkt)
|
||||
{
|
||||
LocalPlayer *player = m_env.getLocalPlayer();
|
||||
assert(player != NULL);
|
||||
|
||||
// Store formspec in LocalPlayer
|
||||
*pkt >> player->formspec_prepend;
|
||||
}
|
||||
|
||||
void Client::handleCommand_CSMFlavourLimits(NetworkPacket *pkt)
|
||||
{
|
||||
*pkt >> m_csm_flavour_limits >> m_csm_noderange_limit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue