Skip to content

Commit c294720

Browse files
authored
Swap reset and delete errors in EffChange (#8177)
swap reset and delete errors
1 parent e800319 commit c294720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ch/njol/skript/effects/EffChange.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelaye
145145
}
146146
yield what + " can't have anything removed from it";
147147
}
148-
case DELETE -> {
148+
case RESET -> {
149149
String error = what + " can't be reset";
150150
if (changed.acceptChange(ChangeMode.DELETE) != null) {
151151
error += ". However, it can be deleted which might result in the desired effect";
152152
}
153153
yield error;
154154
}
155-
case RESET -> {
155+
case DELETE -> {
156156
String error = what + " can't be deleted";
157157
if (changed.acceptChange(ChangeMode.RESET) != null) {
158158
error += ". However, it can be reset which might result in the desired effect";

0 commit comments

Comments
 (0)