Question about networking on 1.20.5 #3739
Unanswered
MATRIX-feather
asked this question in
Mod Dev Support
Replies: 1 comment 1 reply
-
probably a bit of both, the issue is likely that you are trying to ///@Override/// |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
So I've been porting my mod to 1.20.5 recently, it's a mod that acts as a client integration for another Bukkit plugin, and when it comes to networking, I get these errors:
For the code on the fabric side:
Payload type register: https://github.com/XiaMoZhiShi/FeatherMorphClient/blob/1.20.5/src/main/java/xiamomc/morph/client/ServerHandler.java#L165
Payload definition: https://github.com/XiaMoZhiShi/FeatherMorphClient/blob/1.20.5/src/main/java/xiamomc/morph/client/network/payload/MorphInitChannelPayload.java
And on the server side, I send custom messages by calling the Player#sendPluginMessage() method:
https://github.com/XiaMoZhiShi/FeatherMorph/blob/1.20.5/src/main/java/xiamomc/morph/network/server/MorphClientHandler.java#L75
Somehow the client always sends messages with one byte extra, and when the server sends the message to the client, the client immediately disconnects with an error.
Is it a bug about Fabric API or I did something wrong?
Beta Was this translation helpful? Give feedback.
All reactions