0.1.1: drop NeoForge.EVENT_BUS.register(this) with no @SubscribeEvent methods
Build / build (push) Has been cancelled

The empty-class registration was rejected by NeoForge 21.1 at mod-loading
time with:
  IllegalArgumentException: class uk.sijbers.bnstoolkit.BnsToolkit
  has no @SubscribeEvent methods, but register was called anyway.

That tanked the dedicated server during construct-mods. Caught only after
deploying 0.1.0 to the live server — the local /gradlew build doesn't
exercise mod-loading. Will add a gameTestServer run later to catch this
class of bug pre-deploy.

When the first @SubscribeEvent listener lands (likely PlayerLoggedInEvent
in M1), the register call comes back together with it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Matt
2026-06-07 00:17:58 +00:00
parent e99b5b1e0e
commit 9892b0e737
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -19,5 +19,5 @@ loader_version_range=[1,)
mod_id=bnstoolkit
mod_name=Brass and Sigil Toolkit
mod_license=All Rights Reserved
mod_version=0.1.0
mod_version=0.1.1
mod_group_id=uk.sijbers.bnstoolkit