mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-16 02:47:48 +02:00
fixed weird stutter on join....
This commit is contained in:
parent
6335126c6c
commit
6f368def27
@ -274,8 +274,8 @@ function Public.reset_map()
|
||||
|
||||
game.forces.player.set_spawn_position({-27, 25}, surface)
|
||||
|
||||
-- Task.start_queue()
|
||||
-- Task.set_queue_speed(32)
|
||||
Task.start_queue()
|
||||
Task.set_queue_speed(32)
|
||||
|
||||
this.chunk_load_tick = game.tick + 1200
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
require 'util'
|
||||
local Global = require 'utils.global'
|
||||
local Event = require 'utils.event'
|
||||
local surface_name = 'mountain_fortress_v3'
|
||||
local level_width = require 'maps.mountain_fortress_v3.terrain'.level_width
|
||||
local Reset = require 'maps.mountain_fortress_v3.soft_reset'
|
||||
@ -21,16 +20,6 @@ Global.register(
|
||||
|
||||
local starting_items = {['pistol'] = 1, ['firearm-magazine'] = 16, ['rail'] = 16, ['wood'] = 16, ['explosives'] = 32}
|
||||
|
||||
local function on_init()
|
||||
local mgs = game.surfaces['nauvis'].map_gen_settings
|
||||
mgs.width = 16
|
||||
mgs.height = 16
|
||||
game.surfaces['nauvis'].map_gen_settings = mgs
|
||||
game.surfaces['nauvis'].clear()
|
||||
|
||||
Public.create_surface()
|
||||
end
|
||||
|
||||
function Public.create_surface()
|
||||
local map_gen_settings = {
|
||||
['seed'] = math.random(10000, 99999),
|
||||
@ -92,6 +81,4 @@ function Public.get(key)
|
||||
end
|
||||
end
|
||||
|
||||
Event.on_init(on_init)
|
||||
|
||||
return Public
|
||||
|
Loading…
Reference in New Issue
Block a user