On Minecraft 1.20.5 Fabric, registering a C2S packet using Architectury API crashes the dedicated server, as it attempts to import the Minecraft class during registration. This happens in both dev and prod.
This can be reproduced by running the dedicated Fabric server on Architectury API's test mod, though it also happens with an implementation I wrote if you need a second reproduction.
In case it's relevant, I'm using Eclipse Termurin 21.0.3 as my JDK.
On Minecraft 1.20.5 Fabric, registering a C2S packet using Architectury API crashes the dedicated server, as it attempts to import the
Minecraft
class during registration. This happens in both dev and prod.This can be reproduced by running the dedicated Fabric server on Architectury API's test mod, though it also happens with an implementation I wrote if you need a second reproduction.
In case it's relevant, I'm using Eclipse Termurin 21.0.3 as my JDK.