mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-11-17 05:50:41 +09:00
.
This commit is contained in:
1 parent
7317576994
commit
8ff0581fba
2 files changed
+1
-19
No files matched your search
@@ -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