Skip to content

Commit 1d793c4

Browse files
committed
Fix script.level.mod_name is nil
1 parent 2a4eb0e commit 1d793c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ modules.data_consistency_example = require("models/data-consistency-example")
1616

1717
-- Safe disabling of this mod remotely on init stage
1818
-- Useful for other map developers and in some rare cases for mod devs
19-
if remote.interfaces["disable-" .. script.level.mod_name or ""] then
19+
if script.level.mod_name and remote.interfaces["disable-" .. script.level.mod_name] then
2020
for _, module in pairs(modules) do
2121
local update_global_data_on_disabling = module.update_global_data_on_disabling
2222
module.events = nil

0 commit comments

Comments
 (0)