0.1.1: drop NeoForge.EVENT_BUS.register(this) with no @SubscribeEvent methods
Build / build (push) Has been cancelled
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user