1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2024-12-12 10:13:58 +02:00

Merge pull request #241 from Oarcinae/240-crash-on-gui-selection-when-disabling-main-team-radio

Fix #240 crash on gui radio select when main team is disabled.
This commit is contained in:
Oarcinae 2024-11-05 09:11:45 -05:00 committed by GitHub
commit cd300b0dcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 2.1.7
Date: 2024-11-05
Bugfixes:
- Fix crash when player clicks on team radio select if main team is disabled.
---------------------------------------------------------------------------------------------------
Version: 2.1.6
Date: 2024-11-04
Bugfixes:

View File

@ -1,6 +1,6 @@
{
"name": "oarc-mod",
"version": "2.1.6",
"version": "2.1.7",
"factorio_version": "2.0",
"title": "Oarc Multiplayer Spawn",
"author": "Oarcinae",

View File

@ -648,7 +648,9 @@ function SpawnOptsRadioSelect(event)
event.element.parent.isolated_spawn_new_team_radio.state = false
end
elseif (elemName == "isolated_spawn_new_team_radio") then
event.element.parent.isolated_spawn_main_team_radio.state = false
if (event.element.parent.isolated_spawn_main_team_radio ~= nil) then
event.element.parent.isolated_spawn_main_team_radio.state = false
end
end
elseif (tags.setting == "buddy_team_select") then