Simplify loading config and use config loader with version check. (#1939)
This commit is contained in:
@@ -25,7 +25,7 @@ import (
|
||||
// Check if version of the config is valid
|
||||
func validateConfigVersion(config *configV8) (bool, string) {
|
||||
if config.Version != globalMCConfigVersion {
|
||||
return false, fmt.Sprintf("Config version %s does not match GlobalMCConfiguration %s.\n",
|
||||
return false, fmt.Sprintf("Config version '%s' does not match mc config version '%s', please update your binary.\n",
|
||||
config.Version, globalMCConfigVersion)
|
||||
}
|
||||
return true, ""
|
||||
|
||||
Reference in New Issue
Block a user