From 8d90ade747c1a814d0b8fb432ffe077122995625 Mon Sep 17 00:00:00 2001 From: Michael Gilardi <11632652+mgilardi@users.noreply.github.com> Date: Wed, 25 Nov 2026 11:46:57 -0700 Subject: [PATCH] Drop the Posse load-order entry that looped with Posse Posse loads after BlueMapMini so it can see the share event class. 0.5.0 also asked to load after Posse, and Paper logged a load-order loop when both were installed (found rehearsing the install on a copy of a live server). BlueMapMini looks Posse up at share time, so it needs no order. A unit test now fails if a Posse entry comes back. Tested: unit tests and build. Not yet rerun on a server. Task: K736 Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- build.gradle.kts | 2 +- docs/releases/v0.5.1.md | 5 +++++ src/main/resources/paper-plugin.yml | 5 ----- .../extantape/bluemapmini/LoadOrderTest.java | 21 +++++++++++++++++++ 5 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 docs/releases/v0.5.1.md create mode 100644 src/test/java/com/extantape/bluemapmini/LoadOrderTest.java diff --git a/README.md b/README.md index 62f83c8..972b75a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ BlueMapMini: a BlueMap minimap and coordinates HUD for Paper, rendered in game f It's an unofficial add-on for BlueMap and isn't affiliated with BlueMap's authors. -**Status:** pre-release, version 0.5.0, for Posse 0.11.0. 0.5.0 passed the full live suite and the real-Posse test (8 checks) on throwaway Paper 26.3 (337 checks, the client font check skipped), 2026-11-25, and on 26.1.2 and 26.2 (337 each) just before the old share keys were dropped; the config change is covered by unit tests there. 0.3.0 passed a full test suite on live Paper 26.1.2, 26.2 and 26.3 servers with real BlueMap tiles, using a protocol bot. 0.4.1 (the share audience setting) passed it again on 26.3 only, 334 of 335 with the client font check skipped, plus the real Posse test. It hasn't been seen in a real game client yet. See [Testing](#testing). +**Status:** pre-release, version 0.5.1, for Posse 0.11.0. 0.5.1 only drops a load-order entry that looped with Posse (unit tests and a server rehearsal on a copy of a live server). 0.5.0 passed the full live suite and the real-Posse test (8 checks) on throwaway Paper 26.3 (337 checks, the client font check skipped), 2026-11-25, and on 26.1.2 and 26.2 (337 each) just before the old share keys were dropped; the config change is covered by unit tests there. 0.3.0 passed a full test suite on live Paper 26.1.2, 26.2 and 26.3 servers with real BlueMap tiles, using a protocol bot. 0.4.1 (the share audience setting) passed it again on 26.3 only, 334 of 335 with the client font check skipped, plus the real Posse test. It hasn't been seen in a real game client yet. See [Testing](#testing). - Requires Paper 26.1 or newer, Java 25, and a BlueMap version that matches your server (see below). Java Edition only. Paper 1.21.11 and older aren't supported. - Works alongside other resource packs, because it never overrides a shader and only adds its own files. diff --git a/build.gradle.kts b/build.gradle.kts index 454344b..e369849 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,7 +3,7 @@ plugins { } group = "com.extantape" -version = "0.5.0" +version = "0.5.1" java { toolchain.languageVersion.set(JavaLanguageVersion.of(25)) diff --git a/docs/releases/v0.5.1.md b/docs/releases/v0.5.1.md new file mode 100644 index 0000000..dd95bc0 --- /dev/null +++ b/docs/releases/v0.5.1.md @@ -0,0 +1,5 @@ +# BlueMapMini 0.5.1 + +- Fixes a load-order loop with Posse. 0.5.0 asked to load after Posse, and Posse already loads after BlueMapMini, so Paper logged a loop at start-up. BlueMapMini looks Posse up when someone shares, so it needs no load order. A unit test now guards this. + +Tested: unit tests, and a rehearsal of the install on a copy of a live 26.3 server (Posse 0.11.0). Not seen in a real game client. diff --git a/src/main/resources/paper-plugin.yml b/src/main/resources/paper-plugin.yml index e2ae176..fcd5406 100644 --- a/src/main/resources/paper-plugin.yml +++ b/src/main/resources/paper-plugin.yml @@ -17,11 +17,6 @@ dependencies: load: BEFORE required: false join-classpath: true - # Optional. Its chat rules decide who may receive a share when share.audience is posse or posse-world-group. - Posse: - load: BEFORE - required: false - join-classpath: false permissions: bluemapmini.use: description: See and control the minimap. diff --git a/src/test/java/com/extantape/bluemapmini/LoadOrderTest.java b/src/test/java/com/extantape/bluemapmini/LoadOrderTest.java new file mode 100644 index 0000000..c45df7e --- /dev/null +++ b/src/test/java/com/extantape/bluemapmini/LoadOrderTest.java @@ -0,0 +1,21 @@ +package com.extantape.bluemapmini; + +import org.junit.jupiter.api.Test; + +import java.nio.file.Files; +import java.nio.file.Path; + +import static org.junit.jupiter.api.Assertions.assertFalse; + +/** + * Posse already loads after BlueMapMini, so it can see the share event class. If BlueMapMini also + * asked to load after Posse, Paper finds a loop and refuses the order (caught in a server rehearsal, + * 2026-11-25). BlueMapMini finds Posse when someone shares, so it needs no load order of its own. + */ +class LoadOrderTest { + @Test + void bluemapminiDoesNotAskToLoadAfterPosse() throws Exception { + String yml = Files.readString(Path.of("src/main/resources/paper-plugin.yml")); + assertFalse(yml.matches("(?s).*\\n\\s+Posse:\\s*\\n.*"), "a Posse entry in dependencies makes a load-order loop with Posse"); + } +}