mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-11 14:49:24 +02:00
dynamic_landfill > 0.17 compatibility
This commit is contained in:
parent
cabc4498c2
commit
410b5dc7d8
@ -328,9 +328,8 @@ local function on_marked_for_deconstruction(event)
|
||||
end
|
||||
|
||||
local function on_player_joined_game(event)
|
||||
--local player = game.players[event.player_index]
|
||||
|
||||
if not global.map_init_done then
|
||||
--local player = game.players[event.player_index]
|
||||
if not global.map_init_done then
|
||||
game.surfaces["nauvis"].ticks_per_day = game.surfaces["nauvis"].ticks_per_day * 2
|
||||
--game.surfaces["nauvis"].freeze_daytime = true
|
||||
global.map_init_done = true
|
||||
|
@ -41,7 +41,9 @@ end
|
||||
|
||||
local function regenerate_decoratives(surface, position)
|
||||
local chunk = get_chunk_position(position)
|
||||
surface.destroy_decoratives({{chunk.x * 32, chunk.y * 32}, {chunk.x * 32 + 32, chunk.y * 32 + 32}})
|
||||
if not chunk then return end
|
||||
surface.destroy_decoratives({area = {{chunk.x * 32, chunk.y * 32}, {chunk.x * 32 + 32, chunk.y * 32 + 32}}})
|
||||
--surface.destroy_decoratives({{chunk.x * 32, chunk.y * 32}, {chunk.x * 32 + 32, chunk.y * 32 + 32}})
|
||||
local decorative_names = {}
|
||||
for k,v in pairs(game.decorative_prototypes) do
|
||||
if v.autoplace_specification then
|
||||
|
Loading…
x
Reference in New Issue
Block a user