Generate data in `river_data` instead of `data`
This commit is contained in:
parent
9594a79f8b
commit
803114aaab
|
@ -9,4 +9,4 @@ bounds_y
|
||||||
dirs
|
dirs
|
||||||
rivers
|
rivers
|
||||||
unused/
|
unused/
|
||||||
data/
|
river_data/
|
||||||
|
|
|
@ -11,7 +11,7 @@ import terrainlib
|
||||||
argc = len(sys.argv)
|
argc = len(sys.argv)
|
||||||
|
|
||||||
config_file = 'terrain.conf'
|
config_file = 'terrain.conf'
|
||||||
output_dir = 'data'
|
output_dir = 'river_data'
|
||||||
params_from_args = {}
|
params_from_args = {}
|
||||||
i = 1 # Index of arguments
|
i = 1 # Index of arguments
|
||||||
j = 1 # Number of 'orphan' arguments (the ones that are not preceded by '--something')
|
j = 1 # Number of 'orphan' arguments (the ones that are not preceded by '--something')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
local modpath = minetest.get_modpath(minetest.get_current_modname()) .. '/'
|
local modpath = minetest.get_modpath(minetest.get_current_modname()) .. '/'
|
||||||
local mod_data_path = modpath .. 'data/'
|
local mod_data_path = modpath .. 'river_data/'
|
||||||
if not io.open(mod_data_path .. 'size', 'r') then
|
if not io.open(mod_data_path .. 'size', 'r') then
|
||||||
mod_data_path = modpath .. 'demo_data/'
|
mod_data_path = modpath .. 'demo_data/'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue