Open Sander0542 opened 3 weeks ago
U need to update your EveryComp to the latest version, v2.6.72 & Moonlight Lib to v2.12.14. Try test them to see if the issue persist.
Hm what? Integer min value where? That packet works and thus must be valid for vanilla so I don't see how it could be our issue. The packet contains a map of strings and map encoding is done by vanilla code. If there's any integer is there. Rest is strings. https://github.com/MehVahdJukaar/WoodGood/blob/e71d856801c7cc003b284d35d4816d5954f11fdf/common/src/main/java/net/mehvahdjukaar/every_compat/ECNetworking.java#L45
Any news on this issue?
the int here is message id: see https://wiki.vg/Protocol#Login_Plugin_Request this here is filled in by forge in the internals of the simple network channel as int.minvalue as a getter is not provided on creation.
while int.min value is a valid value for it, it shouldnt occur in normal gameplay (as the docs say it should be unique vs all other messages).
int.min value was previously treated as a sentinel value for parsing error in velocity, and is fixed as of build 416, released ~20 days ago
i think the correct way of doing it is with the loginIndexGetter and loginIndexSetter on SimpleChannel.MessageBuilder, but there is very little docs
I still dont know where this -1 would be in my code. If you mean its in the message id its not. Those message have Ids 0 and 1. An also even if they were to use a negative or -1 value, if forge allowed it would still be a velocity issue. If forge allows the packet then its not my issue
Before Continuing:
Version
1.20.1
Loader
Forge
EveryCompat Version
everycomp-1.20-2.6.66
Moonlight Lib Version
moonlight-1.20-2.12.6-forge
Issue with mods
Velocity 3.0.0
This is not another mod, but a minecraft server proxy.
Issue Detail
When the
mod_version_check_packet
setting is enabled, this mod sends a packet to the server to query the correct versions. This packet contains theInteger.MIN_VALUE
which causes the proxy to disconnect the client.The following section of code causes the client to disconnect
https://github.com/MehVahdJukaar/WoodGood/blob/e71d856801c7cc003b284d35d4816d5954f11fdf/forge/src/main/java/net/mehvahdjukaar/every_compat/forge/EveryCompatForge.java#L169-L176
More information can be found in the following ticket: https://github.com/PaperMC/Velocity/issues/1370
OPTIONAL: Latest.log | Crash-report Attachment
The following log comes from the Velocity proxy, not the mod.
OPTIONAL: To Produce