forked from Mineclonia/Mineclonia
Assert that both parts of mcl_autogroup exist
This commit is contained in:
parent
029ebaa388
commit
34af6a2cc3
|
@ -69,6 +69,8 @@ This also means that it is very important that no mod adds _mcl_autogroup as a
|
||||||
dependency.
|
dependency.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
assert(minetest.get_modpath("mcl_autogroup"), "This mod requires the mod mcl_autogroup to function")
|
||||||
|
|
||||||
-- Returns a table containing the unique "_mcl_hardness" for nodes belonging to
|
-- Returns a table containing the unique "_mcl_hardness" for nodes belonging to
|
||||||
-- each diggroup.
|
-- each diggroup.
|
||||||
local function get_hardness_values_for_groups()
|
local function get_hardness_values_for_groups()
|
||||||
|
|
|
@ -12,6 +12,8 @@ as possible. Minetest loads mods in reverse alphabetical order.
|
||||||
mcl_autogroup = {}
|
mcl_autogroup = {}
|
||||||
mcl_autogroup.registered_diggroups = {}
|
mcl_autogroup.registered_diggroups = {}
|
||||||
|
|
||||||
|
assert(minetest.get_modpath("_mcl_autogroup"), "This mod requires the mod _mcl_autogroup to function")
|
||||||
|
|
||||||
-- Register a group as a digging group.
|
-- Register a group as a digging group.
|
||||||
--
|
--
|
||||||
-- Parameters:
|
-- Parameters:
|
||||||
|
|
Loading…
Reference in New Issue