diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-06-10 13:01:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-10 13:01:07 +0200 |
commit | e2f8f4da83206d551f9acebd14d574ea37ca214a (patch) | |
tree | 0a2a4f63b59db1a511c781c617b5e80f608723e5 /src/gui/guiFormSpecMenu.h | |
parent | e40be619f2a30c7a4d5042d922f0fe57539411d5 (diff) | |
download | minetest-e2f8f4da83206d551f9acebd14d574ea37ca214a.tar.gz minetest-e2f8f4da83206d551f9acebd14d574ea37ca214a.tar.bz2 minetest-e2f8f4da83206d551f9acebd14d574ea37ca214a.zip |
Formspecs: Close on metadata removal (#8348)
Formspecs will now close as soon the formspec string in the node metadata turns invalid.
Diffstat (limited to 'src/gui/guiFormSpecMenu.h')
-rw-r--r-- | src/gui/guiFormSpecMenu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/guiFormSpecMenu.h b/src/gui/guiFormSpecMenu.h index 33f88d8c0..ccd9cb753 100644 --- a/src/gui/guiFormSpecMenu.h +++ b/src/gui/guiFormSpecMenu.h @@ -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; |