Fix JSON builder not parsing '§r'

This commit is contained in:
Eric 2020-01-18 17:33:45 +01:00
parent fd5ebd0921
commit f15fdc781f
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ public class JsonBuilder {
} }
} }
private static final Pattern PART_PATTERN = Pattern.compile("(([§][a-fA-Fl-oL-OkK0-9])+)([^§]*)"); private static final Pattern PART_PATTERN = Pattern.compile("(([§][a-fA-Fk-oK-OrR0-9])+)([^§]*)");
private Part rootPart; private Part rootPart;
private ShopChest plugin; private ShopChest plugin;
@ -147,7 +147,7 @@ public class JsonBuilder {
matcher.reset(); matcher.reset();
PartArray array = new PartArray(); PartArray array = new PartArray(new Part());
int lastEndIndex = 0; int lastEndIndex = 0;
while (matcher.find()) { while (matcher.find()) {