[.15.5] Desync with game_view_settings
Posted: Tue May 02, 2017 11:31 am
Connect with 2 players
Place a logistic storage chest run the code below and have player 2 select it.
If you remove the game.print it won't desync right away but you will notice that player 2's minimap has some rapid flicker
Possibly related - viewtopic.php?f=23&t=45159&p=260674&hil ... gs#p260674
Place a logistic storage chest run the code below and have player 2 select it.
Code: Select all
/c script.on_event(defines.events.on_selected_entity_changed, function(event)
local player = game.players[event.player_index]
if not player.opened and player.selected and player.selected.type == "logistic-container" and player.game_view_settings.show_minimap then
player.game_view_settings.show_minimap = false
elseif not player.game_view_settings.show_minimap then
player.game_view_settings.show_minimap = true
end
game.print(game.tick)
end)
If you remove the game.print it won't desync right away but you will notice that player 2's minimap has some rapid flicker
Possibly related - viewtopic.php?f=23&t=45159&p=260674&hil ... gs#p260674