update translation detection

This commit is contained in:
tenplus1 2020-08-25 09:54:28 +01:00
parent 98617ac075
commit 4d38b1b233
3 changed files with 8 additions and 3 deletions

View File

@ -1,2 +1,3 @@
mobs mobs
lucky_block? lucky_block?
intllib?

View File

@ -1,5 +1,8 @@
local S = mobs.intllib -- Load support for intllib.
local MP = minetest.get_modpath(minetest.get_current_modname())
local S = minetest.get_translator and minetest.get_translator("mob_horse") or
dofile(MP .. "/intllib.lua")
-- 0.4.17 or 5.0 check -- 0.4.17 or 5.0 check
local y_off = 20 local y_off = 20
@ -15,9 +18,7 @@ local shoes = {
["mobs:horseshoe_diamond"] = {10, 6, 6, "mobs_horseshoe_diamondo.png"} ["mobs:horseshoe_diamond"] = {10, 6, 6, "mobs_horseshoe_diamondo.png"}
} }
-- rideable horse -- rideable horse
mobs:register_mob("mob_horse:horse", { mobs:register_mob("mob_horse:horse", {
type = "animal", type = "animal",
visual = "mesh", visual = "mesh",

3
intllib.lua Normal file
View File

@ -0,0 +1,3 @@
-- Support for the old multi-load method
dofile(minetest.get_modpath("intllib").."/init.lua")