aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authortenplus1 <kinsellaja@yahoo.com>2020-08-25 09:54:28 +0100
committertenplus1 <kinsellaja@yahoo.com>2020-08-25 09:54:28 +0100
commit4d38b1b2331b550a7f7a6624d7e6d2e8ae88cf9a (patch)
tree9577684703e4b12969027d75e3bc3dcd9e5a0bc9 /init.lua
parent98617ac0754c5244a7d8bb36402cb15184df4ac0 (diff)
downloadmob_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.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 170f374..65d70fc 100644
--- a/init.lua
+++ b/init.lua
@@ -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",