mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-21 16:37:27 +00:00
fix execution validation, verify that clientID own playerID to prevent spoofing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user