forked from mtcontrib/biome_lib
Version MFF.
This commit is contained in:
parent
3a3ed250c6
commit
9dd5228218
0
depends.txt
Normal file → Executable file
0
depends.txt
Normal file → Executable file
18
init.lua
Normal file → Executable file
18
init.lua
Normal file → Executable file
@ -44,7 +44,7 @@ local DEBUG = false --... except if you want to spam the console with debugging
|
|||||||
|
|
||||||
function biome_lib:dbg(msg)
|
function biome_lib:dbg(msg)
|
||||||
if DEBUG then
|
if DEBUG then
|
||||||
print("[Plantlife] "..msg)
|
minetest.log("info", "[Plantlife] "..msg)
|
||||||
minetest.log("verbose", "[Plantlife] "..msg)
|
minetest.log("verbose", "[Plantlife] "..msg)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -289,7 +289,7 @@ function biome_lib:populate_surfaces(biome, nodes_or_function_or_model, snodes,
|
|||||||
|
|
||||||
if objtype == "table" then
|
if objtype == "table" then
|
||||||
if nodes_or_function_or_model.axiom then
|
if nodes_or_function_or_model.axiom then
|
||||||
biome_lib:generate_tree(pos, nodes_or_function_or_model)
|
biome_lib:generate_tree(p_top, nodes_or_function_or_model)
|
||||||
spawned = true
|
spawned = true
|
||||||
else
|
else
|
||||||
local fdir = nil
|
local fdir = nil
|
||||||
@ -448,8 +448,8 @@ end)
|
|||||||
-- to prevent unpopulated map areas
|
-- to prevent unpopulated map areas
|
||||||
|
|
||||||
minetest.register_on_shutdown(function()
|
minetest.register_on_shutdown(function()
|
||||||
print("[biome_lib] Stand by, playing out the rest of the aircheck mapblock log")
|
minetest.log("action", "[biome_lib] Stand by, playing out the rest of the aircheck mapblock log")
|
||||||
print("(there are "..#biome_lib.blocklist_aircheck.." entries)...")
|
minetest.log("action", "(there are "..#biome_lib.blocklist_aircheck.." entries)...")
|
||||||
while true do
|
while true do
|
||||||
biome_lib:generate_block_with_air_checking(0.1)
|
biome_lib:generate_block_with_air_checking(0.1)
|
||||||
if #biome_lib.blocklist_aircheck == 0 then return end
|
if #biome_lib.blocklist_aircheck == 0 then return end
|
||||||
@ -457,8 +457,8 @@ minetest.register_on_shutdown(function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_shutdown(function()
|
minetest.register_on_shutdown(function()
|
||||||
print("[biome_lib] Stand by, playing out the rest of the no-aircheck mapblock log")
|
minetest.log("action", "[biome_lib] Stand by, playing out the rest of the no-aircheck mapblock log")
|
||||||
print("(there are "..#biome_lib.blocklist_aircheck.." entries)...")
|
minetest.log("action", "(there are "..#biome_lib.blocklist_aircheck.." entries)...")
|
||||||
while true do
|
while true do
|
||||||
biome_lib:generate_block_no_aircheck(0.1)
|
biome_lib:generate_block_no_aircheck(0.1)
|
||||||
if #biome_lib.blocklist_no_aircheck == 0 then return end
|
if #biome_lib.blocklist_no_aircheck == 0 then return end
|
||||||
@ -728,10 +728,10 @@ function biome_lib:get_nodedef_field(nodename, fieldname)
|
|||||||
return minetest.registered_nodes[nodename][fieldname]
|
return minetest.registered_nodes[nodename][fieldname]
|
||||||
end
|
end
|
||||||
|
|
||||||
print("[Biome Lib] Loaded")
|
minetest.log("action", "[Biome Lib] Loaded")
|
||||||
|
|
||||||
minetest.after(0, function()
|
minetest.after(0, function()
|
||||||
print("[Biome Lib] Registered a total of "..(#biome_lib.surfaceslist_aircheck)+(#biome_lib.surfaceslist_no_aircheck).." surface types to be evaluated, spread")
|
minetest.log("action", "[Biome Lib] Registered a total of "..(#biome_lib.surfaceslist_aircheck)+(#biome_lib.surfaceslist_no_aircheck).." surface types to be evaluated, spread")
|
||||||
print("[Biome Lib] across "..#biome_lib.actionslist_aircheck.." actions with air-checking and "..#biome_lib.actionslist_no_aircheck.." actions without.")
|
minetest.log("action", "[Biome Lib] across "..#biome_lib.actionslist_aircheck.." actions with air-checking and "..#biome_lib.actionslist_no_aircheck.." actions without.")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
0
locale/de.txt
Normal file → Executable file
0
locale/de.txt
Normal file → Executable file
0
locale/fr.txt
Normal file → Executable file
0
locale/fr.txt
Normal file → Executable file
0
locale/template.txt
Normal file → Executable file
0
locale/template.txt
Normal file → Executable file
0
locale/tr.txt
Normal file → Executable file
0
locale/tr.txt
Normal file → Executable file
Loading…
Reference in New Issue
Block a user