mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-03 13:12:11 +02:00
Soft reset - minor fix
This commit is contained in:
parent
5410f00758
commit
9b2e4a2675
@ -11,6 +11,12 @@ local function show_all_gui(player)
|
||||
end
|
||||
end
|
||||
|
||||
local function clear_spec_tag(player)
|
||||
if player.tag == '[Spectator]' then
|
||||
player.tag = ''
|
||||
end
|
||||
end
|
||||
|
||||
local function reset_forces(new_surface, old_surface)
|
||||
for _, f in pairs(game.forces) do
|
||||
local spawn = {
|
||||
@ -57,6 +63,7 @@ local function equip_players(player_starting_items, data)
|
||||
player.insert({name = item, count = amount})
|
||||
end
|
||||
show_all_gui(player)
|
||||
clear_spec_tag(player)
|
||||
else
|
||||
data.players[player.index] = nil
|
||||
Session.clear_player(player)
|
||||
|
Loading…
x
Reference in New Issue
Block a user