mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-08 00:39:30 +02:00
19 lines
406 B
Lua
19 lines
406 B
Lua
|
local Public = {}
|
||
|
|
||
|
function Public.disable_world_map(player)
|
||
|
player.map_view_settings = {
|
||
|
["show-player-names"] = false,
|
||
|
}
|
||
|
player.show_on_map = false
|
||
|
player.game_view_settings.show_minimap = false
|
||
|
end
|
||
|
|
||
|
function Public.enable_world_map(player)
|
||
|
player.map_view_settings = {
|
||
|
["show-player-names"] = true,
|
||
|
}
|
||
|
player.show_on_map = true
|
||
|
player.game_view_settings.show_minimap = true
|
||
|
end
|
||
|
|
||
|
return Public
|