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

Autoformat and remove unused local

This commit is contained in:
Matthew Heguy 2018-11-20 01:33:06 -05:00
parent 9555fd1e6a
commit 5157503e9a

View File

@ -6,7 +6,7 @@ in this file and your run_*type*_module(event) function will be called.
--]] --]]
local b = require 'map_gen.shared.builders' local b = require 'map_gen.shared.builders'
local Perlin = require 'map_gen.shared.perlin_noise' require 'map_gen.shared.perlin_noise'
local shape = nil local shape = nil
local regen_decoratives = false local regen_decoratives = false
@ -22,7 +22,6 @@ local tiles_per_tick = 32
--require 'map_gen.combined.cave_miner.cave_miner' --require 'map_gen.combined.cave_miner.cave_miner'
--require "map_gen.combined.diggy" --require "map_gen.combined.diggy"
--presets-- --presets--
--shape = require "map_gen.presets.template" --shape = require "map_gen.presets.template"
--shape = require "map_gen.presets.web" --unfinished --shape = require "map_gen.presets.web" --unfinished
@ -154,9 +153,9 @@ if #terrain_modules > 0 then
end end
if shape then if shape then
local surfaces = { local surfaces = {
['nauvis'] = shape, ['nauvis'] = shape
} }
require('map_gen.shared.generate')({surfaces = surfaces, regen_decoratives = regen_decoratives, tiles_per_tick = tiles_per_tick}) require('map_gen.shared.generate')({surfaces = surfaces, regen_decoratives = regen_decoratives, tiles_per_tick = tiles_per_tick})
--require ("map_gen.shared.generate_not_threaded")({surfaces = surfaces, regen_decoratives = regen_decoratives}) --require ("map_gen.shared.generate_not_threaded")({surfaces = surfaces, regen_decoratives = regen_decoratives})