1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-04-11 11:21:54 +02:00

player.force.name ~= "character" > player.force.name ~= "player"

This commit is contained in:
Gerkiz 2019-05-03 09:23:57 +02:00
parent 0e8c2dc760
commit dbfaac6a25
2 changed files with 3 additions and 3 deletions

View File

@ -249,7 +249,7 @@ local function create_biter_battle_menu(player)
local l = t.add { type = "label", caption = #game.forces["north"].connected_players .. " Players "}
l.style.font_color = { r=0.22, g=0.88, b=0.22}
if player.force.name ~= "character" then
if player.force.name ~= "player" then
if global.biter_battle_view_players[player.name] == true then
local t = frame.add { type = "table", column_count = 4 }
@ -319,7 +319,7 @@ local function create_biter_battle_menu(player)
local l = t.add { type = "label", caption = #game.forces["south"].connected_players .. " Players "}
l.style.font_color = { r=0.22, g=0.88, b=0.22}
if player.force.name ~= "character" then
if player.force.name ~= "player" then
if global.biter_battle_view_players[player.name] == true then
local t = frame.add { type = "table", column_count = 4 }

View File

@ -206,7 +206,7 @@ local function refresh_alliances()
for _, player in pairs(game.players) do
if players_to_process[player.index] then
if player.force.name ~= "character" then
if player.force.name ~= "player" then
player.gui.top["anarchy_group_button"].caption = "[Group]"
player.tag = ""
player.force = game.forces.spectator