mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-27 21:26:22 +09:00
.
This commit is contained in:
@@ -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