1
0
mirror of https://github.com/Gael-de-Sailly/30-biomes.git synced 2024-12-23 01:10:33 +01:00

Open biomes.csv properly

and add `flowers` in depends.txt
(fixes unknown biome errors)
This commit is contained in:
Gael-de-Sailly 2016-04-06 11:32:19 +02:00
parent bc27ae5f89
commit fdb064c477
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1,2 @@
default default
flowers

View File

@ -19,7 +19,8 @@ minetest.register_node("biomes:mud", {
sounds = default.node_sound_dirt_defaults(), sounds = default.node_sound_dirt_defaults(),
}) })
for line in io.lines(path .. "/biomes.csv") do local file = io.open(path .. "/biomes.csv", "r")
for line in file:lines() do
local attribs = line:split(",", true) local attribs = line:split(",", true)
local name, stone, fill, top, dust, sea, river, ymin, ymax, heat, humidity = unpack(attribs) local name, stone, fill, top, dust, sea, river, ymin, ymax, heat, humidity = unpack(attribs)
@ -68,6 +69,8 @@ for line in io.lines(path .. "/biomes.csv") do
end end
end end
file:close()
--dofile(path .. "/main_biomes.lua") --dofile(path .. "/main_biomes.lua")
--dofile(path .. "/beach_biomes.lua") --dofile(path .. "/beach_biomes.lua")
--dofile(path .. "/sea_biomes.lua") --dofile(path .. "/sea_biomes.lua")