fix spawners mobs registration
This commit is contained in:
parent
c8f25738ac
commit
9317290a50
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
.* export-ignore
|
||||
assets export-ignore
|
||||
scripts export-ignore
|
||||
*.js export-ignore
|
||||
bin export-ignore
|
||||
docs export-ignore
|
||||
types export-ignore
|
||||
|
@ -27,8 +27,9 @@ local enable_particles = minetest.settings:get_bool('enable_particles')
|
||||
local tick_max = 30
|
||||
local tick_short_max = 20
|
||||
|
||||
-- check if mods exists and build tables
|
||||
for k, mob_mod in ipairs(spawners_mobs.ENABLED_MODS) do
|
||||
function spawners_mobs.register_spawners()
|
||||
-- check if mods exists and build tables
|
||||
for k, mob_mod in ipairs(spawners_mobs.ENABLED_MODS) do
|
||||
local modpath = minetest.get_modpath(mob_mod)
|
||||
-- list of mobs and their info
|
||||
if (modpath) then
|
||||
@ -72,6 +73,7 @@ for k, mob_mod in ipairs(spawners_mobs.ENABLED_MODS) do
|
||||
-- ::continue::
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--
|
||||
|
@ -254,3 +254,5 @@ if minetest.get_modpath('mobs') ~= nil then
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
spawners_mobs.register_spawners()
|
||||
|
@ -39,4 +39,4 @@ end
|
||||
|
||||
local mod_end_time = (minetest.get_us_time() - mod_start_time) / 1000000
|
||||
|
||||
print ('[Mod] Spawners Mobs Loaded. [' .. mod_end_time .. 's]')
|
||||
print('[Mod] Spawners Mobs Loaded. [' .. mod_end_time .. 's]')
|
||||
|
Loading…
Reference in New Issue
Block a user