Skip to content

Commit

Permalink
Add command to re-initialize on-demand
Browse files Browse the repository at this point in the history
Spaceship integrity doesn’t like them :(
  • Loading branch information
Quezler committed Oct 13, 2022
1 parent 7065356 commit 8f47398
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions mods/alt-mode-for-1x1-loaders/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ for event, handler in pairs(events) do
end

--

commands.add_command("reload-alt-mode-for-1x1-loaders", "- Deletes orphaned alt mode indicators.", function(event)
local player = game.get_player(event.player_index)
player.print(player.admin)
if player.admin then
init()
end
end)
2 changes: 1 addition & 1 deletion mods/alt-mode-for-1x1-loaders/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "alt-mode-for-1x1-loaders",
"title": "Alt mode for 1x1 loaders",
"description": "Shows the filters in alt mode as you would expect.",
"version": "1.0.6",
"version": "1.0.7",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down

0 comments on commit 8f47398

Please sign in to comment.