mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-26 21:16:23 +09:00
.
This commit is contained in:
@@ -43,12 +43,6 @@ script.on_init(function()
|
||||
gui_create(player)
|
||||
end
|
||||
end
|
||||
|
||||
if settings.startup['PHI-CT'].value then
|
||||
for _, player in pairs(game.players) do
|
||||
player.set_shortcut_available('phi-cl-toggle-editor', settings.global['PHI-CT-EDITOR'].value)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
script.on_configuration_changed(function()
|
||||
@@ -61,12 +55,6 @@ script.on_configuration_changed(function()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if settings.startup['PHI-CT'].value then
|
||||
for _, player in pairs(game.players) do
|
||||
player.set_shortcut_available('phi-cl-toggle-editor', settings.global['PHI-CT-EDITOR'].value)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
if settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
|
||||
@@ -117,5 +105,4 @@ end
|
||||
if settings.startup['PHI-CT'].value then
|
||||
script.on_event(defines.events.on_lua_shortcut, editor.toggle)
|
||||
script.on_event(defines.events.on_player_toggled_map_editor, editor.toggle_editor)
|
||||
script.on_event(defines.events.on_runtime_mod_setting_changed, editor.setting_change)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user