forked from Mirrorlandia_minetest/minetest
Fix formspec version backup in prepends losing data
This commit is contained in:
parent
23bd5630d0
commit
1ea9bfc6f7
@ -2651,7 +2651,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
|
|||||||
if (enable_prepends) {
|
if (enable_prepends) {
|
||||||
// Backup the coordinates so that prepends can use the coordinates of choice.
|
// Backup the coordinates so that prepends can use the coordinates of choice.
|
||||||
bool rc_backup = mydata.real_coordinates;
|
bool rc_backup = mydata.real_coordinates;
|
||||||
bool version_backup = m_formspec_version;
|
u16 version_backup = m_formspec_version;
|
||||||
mydata.real_coordinates = false; // Old coordinates by default.
|
mydata.real_coordinates = false; // Old coordinates by default.
|
||||||
|
|
||||||
std::vector<std::string> prepend_elements = split(m_formspec_prepend, ']');
|
std::vector<std::string> prepend_elements = split(m_formspec_prepend, ']');
|
||||||
|
Loading…
Reference in New Issue
Block a user