fix execution validation, verify that clientID own playerID to prevent spoofing

This commit is contained in:
Evan
2025-02-18 17:13:08 -08:00
parent 5e6f8f5d91
commit f894276ef0
8 changed files with 106 additions and 31 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export class MirvExecution implements Execution {
) {}
init(mg: Game, ticks: number): void {
if (!this.mg.hasPlayer(this.senderID)) {
if (!mg.hasPlayer(this.senderID)) {
console.warn(`MIRVExecution: player ${this.senderID} not found`);
this.active = false;
return;