From f15fdc781fd153e91b9adf49215f6e0819ad5c64 Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 18 Jan 2020 17:33:45 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20JSON=20builder=20not=20parsing=20'=C2=A7r?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/de/epiceric/shopchest/nms/JsonBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/epiceric/shopchest/nms/JsonBuilder.java b/src/main/java/de/epiceric/shopchest/nms/JsonBuilder.java index ccf822e..522ed05 100644 --- a/src/main/java/de/epiceric/shopchest/nms/JsonBuilder.java +++ b/src/main/java/de/epiceric/shopchest/nms/JsonBuilder.java @@ -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 ShopChest plugin; @@ -147,7 +147,7 @@ public class JsonBuilder { matcher.reset(); - PartArray array = new PartArray(); + PartArray array = new PartArray(new Part()); int lastEndIndex = 0; while (matcher.find()) {