diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 80afe594..a80347b1 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -385,7 +385,7 @@ void GUIFormSpecMenu::parseCheckbox(parserData* data,std::string element) { std::vector parts = split(element,';'); - if (((parts.size() >= 3) || (parts.size() <= 4)) || + if (((parts.size() >= 3) && (parts.size() <= 4)) || ((parts.size() > 4) && (m_formspec_version > FORMSPEC_API_VERSION))) { std::vector v_pos = split(parts[0],',');