0.3.1: drop ToastPacket — client-only imports broke server-side load
Build / build (push) Has been cancelled
Build / build (push) Has been cancelled
ToastPacket imported net.minecraft.client.gui.components.toasts.* and net.minecraft.client.Minecraft at class scope. When BnsNetwork.onRegister Payloads referenced ToastPacket::handle on the dedicated server, NoClassDefFoundError fired (the client-only classes don't exist on the dedicated server side). Toast feedback wasn't load-bearing — KubeJS already chat-prints the result of every /bns verb. Players see "Sold 8x diamond for 60 spurs" in the chat as before, and the screens re-render off the snapshot the bridge pushes after each routed verb. 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.3.0
|
||||
mod_version=0.3.1
|
||||
mod_group_id=uk.sijbers.bnstoolkit
|
||||
|
||||
Reference in New Issue
Block a user