mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-27 05:26:22 +09:00
.
This commit is contained in:
@@ -24,18 +24,4 @@ function main.toggle_editor(event)
|
||||
game.tick_paused = false
|
||||
end
|
||||
|
||||
function main.setting_change(event)
|
||||
if event.setting_type ~= 'runtime-global' then
|
||||
return
|
||||
end
|
||||
|
||||
if event.setting ~= 'PHI-CT-EDITOR' then
|
||||
return
|
||||
end
|
||||
|
||||
for _, p in pairs(game.players) do
|
||||
p.set_shortcut_available('phi-cl-toggle-editor', settings.global['PHI-CT-EDITOR'].value)
|
||||
end
|
||||
end
|
||||
|
||||
return main
|
||||
|
||||
Reference in New Issue
Block a user