architectury / architectury-api

An intermediary api aimed at easing development of multiplatform mods.
https://discord.architectury.dev/
GNU Lesser General Public License v3.0
306 stars 55 forks source link

[1.20.5] Sending a Packet S2C Disconnects Client from Dedicated Server on NeoForge #498

Closed hammy275 closed 2 months ago

hammy275 commented 2 months ago

Basically what the title says. On a dedicated server only (singleplayer server is fine), sending a packet from server to client disconnects the client and puts an error in the server log (link to server log). This occurs under NeoForge, however I can't attempt to reproduce this under Fabric due to #496 (perhaps S2C packets also cause the same issue? Not sure). From what I can gather, C2S packet sends under NeoForge are totally fine.

I've made a very minimal mod that reproduces the issue, with an included build for NeoForge.