diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-09-29 12:40:59 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-09-29 13:40:59 +0200 |
commit | 07bdd6049b6d190de69419cc9be2ac49d3a08e0f (patch) | |
tree | 4ecd337e64a6ae3824c8d6eac92b5ea82f6d7789 /src | |
parent | 16865a5bf65daae6131f1ad3d0df98be8b01f0f0 (diff) | |
download | minetest-07bdd6049b6d190de69419cc9be2ac49d3a08e0f.tar.gz minetest-07bdd6049b6d190de69419cc9be2ac49d3a08e0f.tar.bz2 minetest-07bdd6049b6d190de69419cc9be2ac49d3a08e0f.zip |
Fix error message caused by adding new parameter to background (#8922)
Adds background9[] element to keep backwards compatibility in formspec prepends.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 390c81bc1..ebcc6b67e 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -2231,8 +2231,8 @@ void GUIFormSpecMenu::parseElement(parserData* data, const std::string &element) return; } - if (type == "background") { - parseBackground(data,description); + if (type == "background" || type == "background9") { + parseBackground(data, description); return; } |