look at the code if you want to know what i did

This commit is contained in:
adman
2026-03-22 00:35:07 +01:00
parent a6102b7ec9
commit ea024fe808
21 changed files with 294 additions and 78 deletions
+3 -6
View File
@@ -116,10 +116,7 @@ func handleClient(c *proto.Conn) (err error) {
return
}
defer sockPuppet.Close()
err = sockPuppet.Start(&client.LoginClient{
Conn: sockPuppet,
Account: acc,
})
err = sockPuppet.StartLoop()
if err != nil {
return
}
@@ -127,10 +124,10 @@ func handleClient(c *proto.Conn) (err error) {
p := &Proxy{Client: sockPuppet, Servee: c}
p.Data.Value = map[string]any{"Registries": []any{}}
go func() {
errChan <- p.Client.Start(p)
errChan <- p.Client.StartLoop()
}()
go func() {
errChan <- p.Servee.Start(p)
errChan <- p.Servee.StartLoop()
}()
err = <-errChan
f, err := os.Create("data/registry/" + SaveAs + ".nbt")