Skip to content

Commit 6b5825c

Browse files
committed
Fix
1 parent c566b03 commit 6b5825c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

gomcproxy.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,9 @@ func (p *Proxy) proxyTraffic(src net.Conn, dst net.Conn, clientToServer bool) {
464464

465465
if locraw.GameType == "BEDWARS" && locraw.Mode != "" {
466466
bedwarsType, ok := GetBedwarsType(locraw.Mode)
467-
if !ok {
468-
log.Panic(ok)
467+
if ok {
468+
p.bedwarsType = &bedwarsType
469469
}
470-
p.bedwarsType = &bedwarsType
471470
} else {
472471
p.bedwarsType = nil
473472
}

0 commit comments

Comments
 (0)