No minimap on platforms

by Quezler

As if you can get lost, you just want to see thruster info in the sidebar.

Tweaks
23 days ago
2.0
529
Factorio: Space Age Icon Space Age Mod
Owner:
Quezler
Source:
https://github.com/Quezler/glutenfree
Homepage:
https://discord.gg/ktZNgJcaVA
License:
MIT
Created:
a month ago
Latest Version:
1.0.3 (23 days ago)
Factorio version:
2.0
Downloaded by:
529 users

script.on_event(defines.events.on_player_changed_surface, function(event)
  local player = game.get_player(event.player_index) --[[@as LuaPlayer]]
  player.game_view_settings.show_minimap = player.surface.platform == nil
end)