From 2bb214a6600849b05602b7e7b73ea22e8a9745fe Mon Sep 17 00:00:00 2001 From: tastybento Date: Wed, 15 Apr 2026 21:24:25 -0700 Subject: [PATCH 1/2] fix(ci): correct artifact path in Modrinth publish workflow The hardcoded path referenced /home/runner/work/BentoBox/ instead of /home/runner/work/Border/, causing the publish job to fail with ENOENT. Use ${{ github.workspace }} for a portable fix. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/modrinth-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/modrinth-publish.yml b/.github/workflows/modrinth-publish.yml index 0f432e0..0a5be0e 100644 --- a/.github/workflows/modrinth-publish.yml +++ b/.github/workflows/modrinth-publish.yml @@ -40,4 +40,4 @@ jobs: game-versions: |- 1.21.4 1.21.5 - files: /home/runner/work/BentoBox/Border/target/Border-${{ github.event.release.tag_name }}.jar + files: ${{ github.workspace }}/target/Border-${{ github.event.release.tag_name }}.jar From aa497b6f4c67ffe3ad509a367e617dbc6828eb8f Mon Sep 17 00:00:00 2001 From: tastybento Date: Mon, 25 May 2026 20:32:54 -0700 Subject: [PATCH 2/2] fix(border): use setSize instead of changeSize for 1.21.10 compatibility Paper 1.21.11 made setSize(double, long) a default method delegating to a new abstract changeSize(double, long), so Border 4.8.3 built against 1.21.11 throws NoSuchMethodError on 1.21.10 servers. Calling setSize keeps identical behavior and works on both versions. Bumps to 4.8.4. Co-Authored-By: Claude Opus 4.7 (1M context) --- pom.xml | 2 +- .../java/world/bentobox/border/listeners/ShowWorldBorder.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index f6dac37..5c7a0d3 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,7 @@ ${build.version}-SNAPSHOT - 4.8.3 + 4.8.4 -LOCAL BentoBoxWorld_Border diff --git a/src/main/java/world/bentobox/border/listeners/ShowWorldBorder.java b/src/main/java/world/bentobox/border/listeners/ShowWorldBorder.java index afebc51..9ebe3e7 100644 --- a/src/main/java/world/bentobox/border/listeners/ShowWorldBorder.java +++ b/src/main/java/world/bentobox/border/listeners/ShowWorldBorder.java @@ -62,10 +62,10 @@ public void showBorder(Player player, Island island) { .orElseGet(() -> addon.getSettings().getColor()); switch(borderColor) { case RED: - wb.changeSize(wb.getSize() - 0.1, MAX_TICKS); + wb.setSize(wb.getSize() - 0.1, MAX_TICKS); break; case GREEN: - wb.changeSize(wb.getSize() + 0.1, MAX_TICKS); + wb.setSize(wb.getSize() + 0.1, MAX_TICKS); break; case BLUE: break;