mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
parent
94c294bfdc
commit
014a1a0805
@ -121,8 +121,7 @@ struct TextDestPlayerInventory : public TextDest
|
||||
|
||||
struct LocalFormspecHandler : public TextDest
|
||||
{
|
||||
LocalFormspecHandler(const std::string &formname):
|
||||
m_client(NULL)
|
||||
LocalFormspecHandler(const std::string &formname)
|
||||
{
|
||||
m_formname = formname;
|
||||
}
|
||||
@ -174,10 +173,11 @@ struct LocalFormspecHandler : public TextDest
|
||||
}
|
||||
|
||||
// Don't disable this part when modding is disabled, it's used in builtin
|
||||
if (m_client && m_client->getScript())
|
||||
m_client->getScript()->on_formspec_input(m_formname, fields);
|
||||
}
|
||||
|
||||
Client *m_client;
|
||||
Client *m_client = nullptr;
|
||||
};
|
||||
|
||||
/* Form update callback */
|
||||
|
Loading…
Reference in New Issue
Block a user