Skip to content

Commit

Permalink
nonexistent object prefixes don't count against type validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 21, 2020
1 parent d70ea96 commit ce4716c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -487,7 +487,7 @@ public void run() {
case SET:
if (yamlDocuments.containsKey(id)) {
if (yaml_action == null || key == null || value == null) {
Debug.echoError("Must specify a YAML action and value!");
Debug.echoError("Must specify a YAML action, key, and value!");
return;
}
YamlConfiguration yaml = yamlDocuments.get(id);
Expand Down
Expand Up @@ -351,7 +351,9 @@ else if (inpType == ElementTag.class) {
if (atIndex != -1) {
String code = simple.substring(0, atIndex);
if (!code.equals(knownCode) && !code.equals("el")) {
return false;
if (ObjectFetcher.objectsByPrefix.containsKey(code)) {
return false;
}
}
}
return true;
Expand Down

0 comments on commit ce4716c

Please sign in to comment.