From ffe3abf53b161b4b6914c6f08b3ba4fdd41230d4 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Fri, 12 Jul 2024 13:45:32 +0200 Subject: [PATCH] temporarily remove validation --- ui/tui/tui.go | 3 ++- utils/proxy/resourcepacks.go | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/tui/tui.go b/ui/tui/tui.go index 9ea4a54..30e3e6a 100644 --- a/ui/tui/tui.go +++ b/ui/tui/tui.go @@ -81,7 +81,8 @@ func (c *TUI) HandleMessage(msg *messages.Message) *messages.Message { case *messages.ServerInput: _ = msg var cancelled bool - server, cancelled := utils.UserInput(c.ctx, locale.Loc("enter_server", nil), utils.ValidateServerInput) + // utils.ValidateServerInput + server, cancelled := utils.UserInput(c.ctx, locale.Loc("enter_server", nil), nil) if cancelled { return &messages.Message{ Source: "gui", diff --git a/utils/proxy/resourcepacks.go b/utils/proxy/resourcepacks.go index 5f441ad..b36677f 100644 --- a/utils/proxy/resourcepacks.go +++ b/utils/proxy/resourcepacks.go @@ -512,7 +512,9 @@ func (r *rpHandler) OnResourcePackStack(pk *packet.ResourcePackStack) error { close(r.receivedRemoteStack) r.log.Debug("received remote resourcepack stack, starting game") - <-r.clientDone + if r.clientDone != nil { + <-r.clientDone + } r.Server.Expect(packet.IDStartGame) _ = r.Server.WritePacket(&packet.ResourcePackClientResponse{Response: packet.PackResponseCompleted})