Skip to content

Commit 2ebd711

Browse files
committed
only overwrite 'can't understand' errors.
1 parent ff56acf commit 2ebd711

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/ch/njol/skript/ScriptLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ public static ArrayList<TriggerItem> loadItems(SectionNode node) {
10031003
Collection<LogEntry> errors = handler.getErrors();
10041004

10051005
// restore the failure log
1006-
if (errors.isEmpty()) {
1006+
if (errors.isEmpty() || errors.iterator().next().getMessage().contains("Can't understand this condition/effect:")) {
10071007
handler.restore(backup);
10081008
}
10091009
continue;

0 commit comments

Comments
 (0)