forked from mtcontrib/mobs_animal
code tidy
This commit is contained in:
9
init.lua
9
init.lua
@ -8,11 +8,10 @@ else
|
||||
if minetest.get_modpath("intllib") then
|
||||
dofile(minetest.get_modpath("intllib") .. "/init.lua")
|
||||
if intllib.make_gettext_pair then
|
||||
gettext, ngettext = intllib.make_gettext_pair() -- new gettext method
|
||||
S = intllib.make_gettext_pair() -- new gettext method
|
||||
else
|
||||
gettext = intllib.Getter() -- old text file method
|
||||
S = intllib.Getter() -- old text file method
|
||||
end
|
||||
S = gettext
|
||||
else -- boilerplate function
|
||||
S = function(str, ...)
|
||||
local args = {...}
|
||||
@ -56,7 +55,9 @@ end
|
||||
|
||||
|
||||
-- Lucky Blocks
|
||||
dofile(path .. "lucky_block.lua")
|
||||
if minetest.get_modpath("lucky_block") then
|
||||
dofile(path .. "lucky_block.lua")
|
||||
end
|
||||
|
||||
|
||||
print ("[MOD] Mobs Redo Animals loaded")
|
||||
|
Reference in New Issue
Block a user