This commit is contained in:
adman
2026-01-12 17:33:26 +01:00
parent 08ddf8dc41
commit 11bf0624a4
16 changed files with 132 additions and 58 deletions
+4 -4
View File
@@ -74,8 +74,8 @@ func (p *Proxy) OnFinishConfiguration(packet *v1_21_8.ConfigurationToServerPacke
if err != nil {
return
}
p.State = proto_base.Play
p.Client.State = proto_base.Play
p.SetState(proto_base.Play)
p.Client.SetState(proto_base.Play)
return
}
@@ -151,10 +151,10 @@ func main() {
defer pc.Close()
defer p.Close()
go func() {
errChan <- pc.StartOne(pc)
errChan <- pc.Start(pc)
}()
go func() {
errChan <- p.StartOne(p)
errChan <- p.Start(p)
}()
err = <-errChan
return