Merge branch 'v31'

This commit is contained in:
evanpelle
2026-05-06 13:09:58 -06:00
21 changed files with 366 additions and 597 deletions
-3
View File
@@ -349,13 +349,10 @@ export class GameServer {
}
const clientMsg = parsed.data;
const bytes = Buffer.byteLength(message, "utf8");
const intentType =
clientMsg.type === "intent" ? clientMsg.intent.type : undefined;
const rateResult = this.intentRateLimiter.check(
client.clientID,
clientMsg.type,
bytes,
intentType,
);
if (rateResult === "kick") {
this.log.warn(`Client rate limit exceeded, kicking`, {