Skip to content

Commit

Permalink
minecraft/conn.go: Fixed incorrect limits condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Jul 27, 2023
1 parent 40c672b commit e89f19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minecraft/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func newConn(netConn net.Conn, key *ecdsa.PrivateKey, log *log.Logger, proto Pro
proto: proto,
readerLimits: limits,
}
if limits {
if !limits {
// Disable the batch packet limit so that the server can send packets as often as it wants to.
conn.dec.DisableBatchPacketLimit()
}
Expand Down

0 comments on commit e89f19f

Please sign in to comment.