mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-26 21:16:23 +09:00
.
This commit is contained in:
@@ -106,10 +106,6 @@ if (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].valu
|
||||
script.on_event({defines.events.on_entity_died, defines.events.on_player_mined_entity, defines.events.on_robot_pre_mined, defines.events.script_raised_destroy}, entity_destroy)
|
||||
|
||||
script.on_event(defines.events.on_entity_cloned, function(event)
|
||||
if not event.destination then
|
||||
return
|
||||
end
|
||||
|
||||
entity_build({entity=event.destination})
|
||||
end)
|
||||
end
|
||||
@@ -127,10 +123,6 @@ if settings.startup['PHI-CT'].value then
|
||||
end)
|
||||
|
||||
script.on_event(defines.events.on_permission_group_edited, function(event)
|
||||
if not event.type then
|
||||
return
|
||||
end
|
||||
|
||||
if event.type == 'add-player' or event.type == 'add-player' then
|
||||
if not event.other_player_index then
|
||||
return
|
||||
|
||||
@@ -5,17 +5,7 @@ function main.toggle(event)
|
||||
return
|
||||
end
|
||||
|
||||
if not event.player_index then
|
||||
return
|
||||
end
|
||||
|
||||
local player = game.players[event.player_index]
|
||||
|
||||
if not player then
|
||||
return
|
||||
end
|
||||
|
||||
player.toggle_map_editor()
|
||||
game.players[event.player_index].toggle_map_editor()
|
||||
end
|
||||
|
||||
function main.toggle_editor(event)
|
||||
|
||||
Reference in New Issue
Block a user