From 7a0884e2cdcdf39f832b56421a584b770c98f61b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 9 Dec 2019 21:05:07 +0000 Subject: [PATCH] Fix spaces breaking formspec_version[] tag --- src/gui/guiFormSpecMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 83d7923d9..8d740237c 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -2005,7 +2005,7 @@ bool GUIFormSpecMenu::parseVersionDirect(const std::string &data) return false; } - if (parts[0] != "formspec_version") { + if (trim(parts[0]) != "formspec_version") { return false; } -- 2.25.1