diff --git a/mods/biome_lib/README.md b/mods/biome_lib/README.md index ce539d14..dc04a73f 100755 --- a/mods/biome_lib/README.md +++ b/mods/biome_lib/README.md @@ -14,8 +14,8 @@ It is primarily intended for mapgen v6, but it should work fine when used with m **Dependencies**: default from minetest_game -**Recommends**: [Plantlife Modpack](https://github.com/VanessaE/plantlife_modpack), -[More Trees](https://github.com/VanessaE/moretrees) +**Recommends**: [Plantlife Modpack](https://github.com/minetest-mods/plantlife_modpack), +[More Trees](https://github.com/minetest-mods/moretrees) **License**: WTFPL @@ -27,4 +27,4 @@ It is primarily intended for mapgen v6, but it should work fine when used with m * biome_lib:find_valid_wall() * biome_lib:is_node_loaded() -For a complete description of these functions as well as several of the internal variables within the mod, [read the API.txt document](https://raw.githubusercontent.com/VanessaE/biome_lib/master/API.txt) included in this package. +For a complete description of these functions as well as several of the internal variables within the mod, [read the API.txt document](https://raw.githubusercontent.com/minetest-mods/biome_lib/master/API.txt) included in this package. diff --git a/mods/biome_lib/description.txt b/mods/biome_lib/description.txt new file mode 100644 index 00000000..0412661b --- /dev/null +++ b/mods/biome_lib/description.txt @@ -0,0 +1 @@ +The biome spawning and management library for Plantlife, Moretrees, Tiny Trees, and other mods that originally depended on plants_lib from the plantlife modpack. diff --git a/mods/biome_lib/init.lua b/mods/biome_lib/init.lua index a0f17d24..e564984a 100755 --- a/mods/biome_lib/init.lua +++ b/mods/biome_lib/init.lua @@ -10,7 +10,7 @@ biome_lib = {} -plantslib = setmetatable({}, { __index=function(t,k) minetest.log("warning", "Use of deprecated function:", k) return biome_lib[k] end }) +plantslib = setmetatable({}, { __index=function(t,k) print("Use of deprecated function:", k) return biome_lib[k] end }) biome_lib.blocklist_aircheck = {} biome_lib.blocklist_no_aircheck = {} @@ -127,7 +127,7 @@ end function biome_lib:register_generate_plant(biomedef, nodes_or_function_or_model) - -- if calling code passes an undefined node for a surface or + -- if calling code passes an undefined node for a surface or -- as a node to be spawned, don't register an action for it. if type(nodes_or_function_or_model) == "string" @@ -289,7 +289,7 @@ function biome_lib:populate_surfaces(biome, nodes_or_function_or_model, snodes, if objtype == "table" 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 else local fdir = nil diff --git a/mods/biome_lib/mod.conf b/mods/biome_lib/mod.conf new file mode 100644 index 00000000..7742141a --- /dev/null +++ b/mods/biome_lib/mod.conf @@ -0,0 +1 @@ +name = biome_lib