mirror of
https://github.com/Gael-de-Sailly/30-biomes.git
synced 2024-12-22 17:00:34 +01:00
Open biomes.csv properly
and add `flowers` in depends.txt (fixes unknown biome errors)
This commit is contained in:
parent
bc27ae5f89
commit
fdb064c477
@ -1 +1,2 @@
|
||||
default
|
||||
flowers
|
||||
|
5
init.lua
5
init.lua
@ -19,7 +19,8 @@ minetest.register_node("biomes:mud", {
|
||||
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 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
|
||||
|
||||
file:close()
|
||||
|
||||
--dofile(path .. "/main_biomes.lua")
|
||||
--dofile(path .. "/beach_biomes.lua")
|
||||
--dofile(path .. "/sea_biomes.lua")
|
||||
|
Loading…
Reference in New Issue
Block a user