From 55573bf40a5ab22afc06d0353626a865d0ca30b5 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sat, 28 Nov 2020 15:39:33 -0800 Subject: [PATCH] Clear loaded scripts before generation. Every mission generated after the first each time Liberation was skipping all of the plugins (including the base plugin) because they'd already been loaded on a previous generation and the list wasn't cleared. --- game/operation/operation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/game/operation/operation.py b/game/operation/operation.py index 4d690a8d..15175f36 100644 --- a/game/operation/operation.py +++ b/game/operation/operation.py @@ -314,6 +314,7 @@ class Operation: cls.generate_lua(cls.airgen, cls.airsupportgen, cls.jtacs) # Inject Plugins Lua Scripts and data + cls.plugin_scripts.clear() for plugin in LuaPluginManager.plugins(): if plugin.enabled: plugin.inject_scripts(cls)