From 665af5583fb6bb58033bb42491aeb3e3867e5bcc Mon Sep 17 00:00:00 2001 From: Lukas Rieger Date: Tue, 14 Nov 2023 21:42:46 +0100 Subject: [PATCH 1/2] Fix BlockProperties being stacked the wrong way around --- .../bluemap/core/resources/BlockPropertiesConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/resources/BlockPropertiesConfig.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/resources/BlockPropertiesConfig.java index 495bfd14..59939d04 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/resources/BlockPropertiesConfig.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/resources/BlockPropertiesConfig.java @@ -75,7 +75,7 @@ public void load(Path configFile) throws IOException { BlockStateMapping mapping = new BlockStateMapping<>(bsKey, bsValueBuilder.build()); // don't overwrite already present values, higher priority resources are loaded first - mappings.computeIfAbsent(bsKey.getFormatted(), k -> new LinkedList<>()).add(0, mapping); + mappings.computeIfAbsent(bsKey.getFormatted(), k -> new LinkedList<>()).add(mapping); } json.endObject(); } From c69b31ce84d0926005de69f04efc823147ee3603 Mon Sep 17 00:00:00 2001 From: Lukas Rieger Date: Thu, 16 Nov 2023 23:15:07 +0100 Subject: [PATCH 2/2] Fix invalid usage of String.format on paper implementation --- .../main/java/de/bluecolored/bluemap/bukkit/EventForwarder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementations/paper/src/main/java/de/bluecolored/bluemap/bukkit/EventForwarder.java b/implementations/paper/src/main/java/de/bluecolored/bluemap/bukkit/EventForwarder.java index f8a5f841..c7366572 100644 --- a/implementations/paper/src/main/java/de/bluecolored/bluemap/bukkit/EventForwarder.java +++ b/implementations/paper/src/main/java/de/bluecolored/bluemap/bukkit/EventForwarder.java @@ -65,7 +65,7 @@ public synchronized void onPlayerLeave(PlayerQuitEvent evt) { @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public synchronized void onPlayerChat(AsyncChatEvent evt) { - String message = String.format(PlainTextComponentSerializer.plainText().serialize(evt.message())); + String message = PlainTextComponentSerializer.plainText().serialize(evt.message()); for (ServerEventListener listener : listeners) listener.onChatMessage(Text.of(message)); }