Skip to content

Commit

Permalink
main.go: Try to enable the client cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustTalDevelops committed Mar 23, 2023
1 parent f53c54a commit cea9db3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ func main() {
// handleConn handles a new incoming minecraft.Conn from the minecraft.Listener passed.
func handleConn(conn *minecraft.Conn, listener *minecraft.Listener, config config, src oauth2.TokenSource) {
serverConn, err := minecraft.Dialer{
TokenSource: src,
ClientData: conn.ClientData(),
TokenSource: src,
ClientData: conn.ClientData(),
EnableClientCache: conn.ClientCacheEnabled(),
}.Dial("raknet", config.Connection.RemoteAddress)
if err != nil {
panic(err)
Expand Down

0 comments on commit cea9db3

Please sign in to comment.