You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-07-15 01:04:17 +02:00
fixed weird stutter on join....
This commit is contained in:
@ -274,8 +274,8 @@ function Public.reset_map()
|
|||||||
|
|
||||||
game.forces.player.set_spawn_position({-27, 25}, surface)
|
game.forces.player.set_spawn_position({-27, 25}, surface)
|
||||||
|
|
||||||
-- Task.start_queue()
|
Task.start_queue()
|
||||||
-- Task.set_queue_speed(32)
|
Task.set_queue_speed(32)
|
||||||
|
|
||||||
this.chunk_load_tick = game.tick + 1200
|
this.chunk_load_tick = game.tick + 1200
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
require 'util'
|
require 'util'
|
||||||
local Global = require 'utils.global'
|
local Global = require 'utils.global'
|
||||||
local Event = require 'utils.event'
|
|
||||||
local surface_name = 'mountain_fortress_v3'
|
local surface_name = 'mountain_fortress_v3'
|
||||||
local level_width = require 'maps.mountain_fortress_v3.terrain'.level_width
|
local level_width = require 'maps.mountain_fortress_v3.terrain'.level_width
|
||||||
local Reset = require 'maps.mountain_fortress_v3.soft_reset'
|
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 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()
|
function Public.create_surface()
|
||||||
local map_gen_settings = {
|
local map_gen_settings = {
|
||||||
['seed'] = math.random(10000, 99999),
|
['seed'] = math.random(10000, 99999),
|
||||||
@ -92,6 +81,4 @@ function Public.get(key)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Event.on_init(on_init)
|
|
||||||
|
|
||||||
return Public
|
return Public
|
||||||
|
Reference in New Issue
Block a user