mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 00:13:13 +09:00
Merge pull request #749 from Cooldude2606/fix/736
Fix incorrect use of Array.splice
This commit is contained in:
1 file changed
+1
-1
@@ -1036,7 +1036,7 @@ end`.replace(/\r?\n/g, " ");
|
|||||||
expected => expected.name === name && expected.action === action && expected.reason === reason
|
expected => expected.name === name && expected.action === action && expected.reason === reason
|
||||||
);
|
);
|
||||||
if (expectedIndex >= 0) {
|
if (expectedIndex >= 0) {
|
||||||
this._expectedUserUpdates = this._expectedUserUpdates.splice(expectedIndex, 1);
|
this._expectedUserUpdates.splice(expectedIndex, 1);
|
||||||
} else if (action === "BAN") {
|
} else if (action === "BAN") {
|
||||||
if (this.config.get("factorio.sync_banlist") !== "bidirectional") { return; }
|
if (this.config.get("factorio.sync_banlist") !== "bidirectional") { return; }
|
||||||
this.sendTo(addr, new lib.InstanceBanlistUpdateEvent(name, true, reason ?? ""));
|
this.sendTo(addr, new lib.InstanceBanlistUpdateEvent(name, true, reason ?? ""));
|
||||||
|
|||||||
Reference in new issue
Block a user