Skip to content

Commit

Permalink
fix book edit event determines, for #2149
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 19, 2020
1 parent 1dafb19 commit e462a8b
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -69,6 +69,7 @@ public boolean applyDetermination(ScriptPath path, ObjectTag determinationObj) {
String determination = determinationObj.toString();
if (determination.toUpperCase().equals("NOT_SIGNING")) {
event.setSigning(false);
return true;
}
else if (ScriptTag.matches(determination)) {
ScriptTag script = ScriptTag.valueOf(determination);
Expand All @@ -79,9 +80,11 @@ else if (ScriptTag.matches(determination)) {
event.setSigning(false);
}
event.setNewBookMeta(bookMeta);
return true;
}
else {
Debug.echoError("Script '" + determination + "' is valid, but not of type 'book'!");
return true;
}
}
return super.applyDetermination(path, determinationObj);
Expand Down

0 comments on commit e462a8b

Please sign in to comment.