mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Formspecs: Close on metadata removal (#8348)
Formspecs will now close as soon the formspec string in the node metadata turns invalid.
This commit is contained in:
parent
e40be619f2
commit
e2f8f4da83
4 changed files with 85 additions and 39 deletions
|
@ -304,6 +304,11 @@ public:
|
|||
regenerateGui(m_screensize_old);
|
||||
}
|
||||
|
||||
const InventoryLocation &getFormspecLocation()
|
||||
{
|
||||
return m_current_inventory_location;
|
||||
}
|
||||
|
||||
void setFormspecPrepend(const std::string &formspecPrepend)
|
||||
{
|
||||
m_formspec_prepend = formspecPrepend;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue