1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-03 14:53:01 +02:00

fixed rso

This commit is contained in:
grilledham 2018-08-31 14:52:50 +01:00
parent 9df16a725f
commit 78ef2efefa
2 changed files with 13 additions and 11 deletions

View File

@ -1161,12 +1161,16 @@ function RSO_init()
end
function run_ores_module(event) -- AKA RSO_ChunkGenerated(event)
local c_x = event.area.left_top.x
local c_y = event.area.left_top.y
local Event = require 'utils.event'
RSO_init()
roll_region(c_x, c_y)
roll_chunk(event.surface, c_x, c_y)
end
local function run_ores_module(event) -- AKA RSO_ChunkGenerated(event)
local c_x = event.area.left_top.x
local c_y = event.area.left_top.y
RSO_init()
roll_region(c_x, c_y)
roll_chunk(event.surface, c_x, c_y)
end
Event.add(defines.events.on_chunk_generated, run_ores_module)

View File

@ -100,9 +100,6 @@ local tiles_per_tick = 32
--require "map_gen.terrain.neko_bridged_rivers"
--require "map_gen.terrain.neko_river_overlay"
--ores--
--require "map_gen.ores.rso.rso_control"
-- modules that only return max one entity per tile
local entity_modules = {
--require "map_gen.misc.loot_items",
@ -129,6 +126,7 @@ miscs = {}
--require ('map_gen.misc.change_landfill_tile')('sand-1')
--require ('map_gen.misc.danger_ore_banned_entities')
--require ('map_gen.misc.restrict_landfill_tile')({['water'] = true})
require "map_gen.ores.rso.rso_control"
if #entity_modules > 0 then
shape = shape or b.full_shape