Skip to content

Commit

Permalink
temporarily remove validation
Browse files Browse the repository at this point in the history
  • Loading branch information
olebeck committed Jul 12, 2024
1 parent 51256da commit ffe3abf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ui/tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion utils/proxy/resourcepacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit ffe3abf

Please sign in to comment.