No minimap on platforms

by Quezler

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

Tweaks
a month ago
2.0
581
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 (a month ago)
Factorio version:
2.0
Downloaded by:
581 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)