moved register_once.lua further up

This commit is contained in:
Sokomine 2022-09-14 23:05:19 +02:00
parent ffd98fc924
commit 61dfe5c267

View File

@ -124,10 +124,15 @@ yl_speak_up.reload = function(modpath, log_entry)
end
end
-- register all the necessary things; this ought to be done only once
-- (although most might work without a server restart as well; but we
-- better want to be on the safe side here)
dofile(modpath .. "register_once.lua")
-- load all those files that can also be reloaded without a server restart
-- load here for the first time:
yl_speak_up.reload(modpath, "loaded re-loadable part for the first time")
yl_speak_up.reload(modpath, "loaded")
-- these functions here mostly cannot be reloaded without a server restart
-- because they register tools and entities
@ -149,12 +154,4 @@ if(yl_speak_up.enable_yl_mobs) then
yl_speak_up.mob_table = yl_speak_up.init_mob_table() or {}
end
-- register all the necessary things; this ought to be done only once
-- (although most might work without a server restart as well; but we
-- better want to be on the safe side here)
dofile(modpath .. "register_once.lua")
minetest.log("action","[MOD] yl_speak_up loaded")
minetest.log("action","[MOD] yl_speak_up loaded tools and mobs")