From 18ed6dda1a058a9090cd2d82b3e7fac23edf47bb Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 11 Jul 2026 16:00:48 -0700 Subject: [PATCH] Require BentoBox 3.19.1 at runtime (addon.yml api-version) The 2.10.0 custom block support calls BentoBox hook functionality that is only available in BentoBox 3.19.1+; on older cores those calls fail. Declare 3.19.1 as the minimum api-version so BentoBox refuses to load the addon on an older core instead of failing at runtime. api-version is hardcoded (matching the other addons) rather than filtered from ${bentobox.version}, so the runtime minimum (3.19.1) stays decoupled from the compile dependency (3.17.0, kept for the Java 21 CI toolchain). Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01AgLXH3e951W2wiUg2BU4WM --- src/main/resources/addon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/addon.yml b/src/main/resources/addon.yml index dd23608..4389bd7 100644 --- a/src/main/resources/addon.yml +++ b/src/main/resources/addon.yml @@ -1,7 +1,7 @@ name: MagicCobblestoneGenerator main: world.bentobox.magiccobblestonegenerator.StoneGeneratorAddon version: ${version}${build.number} -api-version: ${bentobox.version} +api-version: 3.19.1 repository: 'BentoBoxWorld/MagicCobblestoneGenerator' metrics: true icon: COBBLESTONE