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 /init.lua | |
parent | 98617ac0754c5244a7d8bb36402cb15184df4ac0 (diff) | |
download | mob_horse-4d38b1b2331b550a7f7a6624d7e6d2e8ae88cf9a.tar.gz mob_horse-4d38b1b2331b550a7f7a6624d7e6d2e8ae88cf9a.tar.bz2 mob_horse-4d38b1b2331b550a7f7a6624d7e6d2e8ae88cf9a.zip |
update translation detection
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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", |