Refactor: Remove VarInt type, replace with int32, and consolidate encoding/decoding logic
This commit is contained in:
@@ -52,10 +52,10 @@ func (s *LoginClient) OnStart(_ event.OnStart) (err error) {
|
||||
return
|
||||
}
|
||||
err = s.Send(v1_21_8.HandshakingToServerPacketSetProtocol{
|
||||
ProtocolVersion: proto_base.VarInt(versionData.Version),
|
||||
ProtocolVersion: int32(versionData.Version),
|
||||
ServerHost: host,
|
||||
ServerPort: uint16(port),
|
||||
NextState: proto_base.VarInt(proto_base.Login),
|
||||
NextState: int32(proto_base.Login),
|
||||
})
|
||||
if err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user