1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2025-01-26 03:20:21 +02:00

Fix button showing for solo forces.

This commit is contained in:
Oarcinae 2020-06-20 14:33:43 -04:00
parent 366e0e928a
commit 2ab5fa7d48

View File

@ -129,10 +129,10 @@ function CreateMapFeatureStoreTab(tab_container, player)
local flow = tab_container.add{name = category, type="flow", direction="horizontal"}
for item_name,item in pairs(section) do
if (item.solo_force and (player.force ~= global.ocfg.main_force)) then
if (item.solo_force and (player.force.name == global.ocfg.main_force)) then
goto SKIP_ITEM
end
if (item.main_force and (player.force == global.ocfg.main_force)) then
if (item.main_force and (player.force.name ~= global.ocfg.main_force)) then
goto SKIP_ITEM
end