forked from Mirrorlandia_minetest/minetest
Formspecs: Fix missing trim() when checking for no_prepend[]
This commit is contained in:
parent
4e2eeee3cc
commit
28a3c4963e
@ -2090,7 +2090,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
|
||||
break;
|
||||
|
||||
std::vector<std::string> parts = split(elements[i], '[');
|
||||
if (parts[0] == "no_prepend")
|
||||
if (trim(parts[0]) == "no_prepend")
|
||||
enable_prepends = false;
|
||||
else
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user