1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-17 20:58:13 +02:00
This commit is contained in:
MewMew 2019-09-14 08:34:23 +02:00
parent 693cd10fa0
commit 11ee35092a
2 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,7 @@ local function process_chunk(surface)
local surface = game.surfaces["biter_battles"]
if not surface then return end
local force_chunk_requests = 3
local force_chunk_requests = 2
if bb_config.fast_pregen then force_chunk_requests = 16 end
for i = #global.chunk_gen_coords, 1, -1 do

View File

@ -261,6 +261,7 @@ local function team_manager_gui_click(event)
local name = event.element.name
if game.forces[name] then
if not player.admin then player.print("Only admins can change team names.", {r = 175, g = 0, b = 0}) return end
custom_team_name_gui(player, name)
player.gui.center["team_manager_gui"].destroy()
return
@ -350,6 +351,7 @@ local function on_gui_click(event)
set_custom_team_name(force_name, custom_name)
player.gui.center["custom_team_name_gui"].destroy()
draw_manager_gui(player)
return
end
if name == "custom_team_name_gui_close" then
player.gui.center["custom_team_name_gui"].destroy()