mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2024-12-12 10:13:58 +02:00
Fix #240 crash on gui radio select when main team is disabled.
This commit is contained in:
parent
c38293448b
commit
129a05510d
@ -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:
|
||||
|
@ -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",
|
||||
|
@ -648,8 +648,10 @@ function SpawnOptsRadioSelect(event)
|
||||
event.element.parent.isolated_spawn_new_team_radio.state = false
|
||||
end
|
||||
elseif (elemName == "isolated_spawn_new_team_radio") then
|
||||
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
|
||||
storage.spawn_choices[player.name].buddy_team = event.element.state
|
||||
|
Loading…
Reference in New Issue
Block a user