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

Fixed undeflatable reference

This commit is contained in:
Lynn 2018-11-24 17:48:30 +01:00
parent c0eb00763c
commit 7e3864ef19
2 changed files with 5 additions and 5 deletions

View File

@ -300,8 +300,8 @@ local Config = {
cluster_mode = true,
-- location of file to find the cluster definition file
cluster_file_location = 'map_gen.Diggy.Orepattern.Tendrils',
--cluster_file_location = 'map_gen.Diggy.Orepattern.Clusters',
ore_pattern = require 'map_gen.Diggy.Orepattern.Tendrils',
--ore_pattern = require 'map_gen.Diggy.Orepattern.Clusters',
},

View File

@ -96,9 +96,9 @@ function ScatteredResources.register(config)
-- compound cluster spawning
local c_mode = config.cluster_mode
local c_clusters = require(config.cluster_file_location)
if ('table' ~= type(c_clusters)) then
error('cluster_file_location invalid')
local c_clusters = config.ore_pattern
if 'table' ~= type(c_clusters) then
error('ore_pattern invalid')
end
local c_count = 0
for _, cluster in ipairs(c_clusters) do