diff options
author | tenplus1 <kinsellaja@yahoo.com> | 2020-08-25 09:54:28 +0100 |
---|---|---|
committer | tenplus1 <kinsellaja@yahoo.com> | 2020-08-25 09:54:28 +0100 |
commit | 4d38b1b2331b550a7f7a6624d7e6d2e8ae88cf9a (patch) | |
tree | 9577684703e4b12969027d75e3bc3dcd9e5a0bc9 | |
parent | 98617ac0754c5244a7d8bb36402cb15184df4ac0 (diff) | |
download | mob_horse-4d38b1b2331b550a7f7a6624d7e6d2e8ae88cf9a.tar.gz mob_horse-4d38b1b2331b550a7f7a6624d7e6d2e8ae88cf9a.tar.bz2 mob_horse-4d38b1b2331b550a7f7a6624d7e6d2e8ae88cf9a.zip |
update translation detection
-rw-r--r-- | depends.txt | 1 | ||||
-rw-r--r-- | init.lua | 7 | ||||
-rw-r--r-- | intllib.lua | 3 |
3 files changed, 8 insertions, 3 deletions
diff --git a/depends.txt b/depends.txt index 0dc5ef3..5ccba0d 100644 --- a/depends.txt +++ b/depends.txt @@ -1,2 +1,3 @@ mobs lucky_block? +intllib? @@ -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 local y_off = 20 @@ -15,9 +18,7 @@ local shoes = { ["mobs:horseshoe_diamond"] = {10, 6, 6, "mobs_horseshoe_diamondo.png"} } - -- rideable horse - mobs:register_mob("mob_horse:horse", { type = "animal", visual = "mesh", diff --git a/intllib.lua b/intllib.lua new file mode 100644 index 0000000..adb0f88 --- /dev/null +++ b/intllib.lua @@ -0,0 +1,3 @@ +-- Support for the old multi-load method +dofile(minetest.get_modpath("intllib").."/init.lua") + |