Skip to content

Conversation

@filodelphia
Copy link

This pull request addresses issue #53 by adding a check for connected players when handling logistics during player setup. Specifically, I included a validation to ensure that only players currently connected to the game are processed for logistic slot assignments. This change aims to prevent conflicts with logistic filters when players are not actively in the game, enhancing the mod's stability in multiplayer scenarios.

Please review the changes and let me know if there are any additional adjustments needed. Thank you!

…on status

This commit introduces a crucial check to ensure that logistics handling is only performed for players who are currently connected to the game. 

Specifically, the check `game.connected_players[player.index]` has been added during the player setup process. This prevents attempts to manipulate logistic slots for players who are no longer connected, thereby avoiding errors and conflicts that arise from operating on disconnected players.

By enforcing this condition, we improve the stability and reliability of the mod's logistics functionality, particularly in multiplayer scenarios where player connections may change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant