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:
@@ -304,6 +304,11 @@ class GUIFormSpecMenu : public GUIModalMenu
|
||||
regenerateGui(m_screensize_old);
|
||||
}
|
||||
|
||||
const InventoryLocation &getFormspecLocation()
|
||||
{
|
||||
return m_current_inventory_location;
|
||||
}
|
||||
|
||||
void setFormspecPrepend(const std::string &formspecPrepend)
|
||||
{
|
||||
m_formspec_prepend = formspecPrepend;
|
||||
|
||||
Reference in New Issue
Block a user