Skip to content

Commit

Permalink
Fixed one final bug found in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Sep 1, 2023
1 parent 3901c17 commit c000572
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -302,7 +302,7 @@ private BaseBlock parseLogic(String input, ParserContext context) throws InputPa
if (stateStart + 1 >= blockAndExtraData[0].length()) {
throw new InputParseException(TranslatableComponent.of("worldedit.error.parser.hanging-lbracket", TextComponent.of(stateStart)));
}
int stateEnd = blockAndExtraData[0].lastIndexOf(']');
int stateEnd = blockAndExtraData[0].indexOf(']');
if (stateEnd < 0) {
throw new InputParseException(TranslatableComponent.of("worldedit.error.parser.missing-rbracket"));
}
Expand Down

0 comments on commit c000572

Please sign in to comment.