forked from your-land-mirror/yl_speak_up
moved register_once.lua further up
This commit is contained in:
parent
ffd98fc924
commit
61dfe5c267
17
init.lua
17
init.lua
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user