missing env key does not fail automatically
This commit is contained in:
parent
60ca138827
commit
3dc1470085
1 changed files with 3 additions and 3 deletions
|
@ -137,10 +137,10 @@ public class ModUtil {
|
|||
public ModEnvironment getEnvironment() {
|
||||
JsonElement env = data.get("environment");
|
||||
if (env==null) {
|
||||
BCLib.LOGGER.error("No environment specified in " + sourceFile);
|
||||
return ModEnvironment.UNIVERSAL;
|
||||
BCLib.LOGGER.warning("No environment specified in " + sourceFile);
|
||||
//return ModEnvironment.UNIVERSAL;
|
||||
}
|
||||
final String environment = env.getAsString().toLowerCase(Locale.ROOT);
|
||||
final String environment = env==null?"":env.getAsString().toLowerCase(Locale.ROOT);
|
||||
|
||||
if (environment.isEmpty() || environment.equals("*") || environment.equals("common")) {
|
||||
JsonElement entrypoints = data.get("entrypoints");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue