We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a4eb0e commit 1d793c4Copy full SHA for 1d793c4
control.lua
@@ -16,7 +16,7 @@ modules.data_consistency_example = require("models/data-consistency-example")
16
17
-- Safe disabling of this mod remotely on init stage
18
-- Useful for other map developers and in some rare cases for mod devs
19
-if remote.interfaces["disable-" .. script.level.mod_name or ""] then
+if script.level.mod_name and remote.interfaces["disable-" .. script.level.mod_name] then
20
for _, module in pairs(modules) do
21
local update_global_data_on_disabling = module.update_global_data_on_disabling
22
module.events = nil
0 commit comments