Add feature flags to first party plugins

This commit is contained in:
Cooldude2606 committed 2026-03-24 17:44:30 +00:00
1 parent 790c2834f2
commit 622d372776
12 files changed
+27 -34

No files matched your search

-4
View File
@@ -13,10 +13,6 @@ type IpcPlayerAuth = {
export class InstancePlugin extends BaseInstancePlugin {
async init() {
if (!this.instance.config.get("factorio.enable_save_patching")) {
throw new Error("player_auth plugin requires save patching.");
}
this.instance.server.on(
"ipc-player_auth",
(ipcPlayerAuth: IpcPlayerAuth) => this.handleEvent(ipcPlayerAuth).catch(