Browse Source

Fix spaces breaking formspec_version[] tag

rubenwardy 4 years ago
parent
commit
8e63d22d64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/gui/guiFormSpecMenu.cpp

+ 1 - 1
src/gui/guiFormSpecMenu.cpp

@@ -2262,7 +2262,7 @@ bool GUIFormSpecMenu::parseVersionDirect(const std::string &data)
 		return false;
 	}
 
-	if (parts[0] != "formspec_version") {
+	if (trim(parts[0]) != "formspec_version") {
 		return false;
 	}