mirror of
https://codeberg.org/tenplus1/mob_horse.git
synced 2024-11-13 05:50:17 +01:00
update translation detection
This commit is contained in:
parent
98617ac075
commit
4d38b1b233
|
@ -1,2 +1,3 @@
|
|||
mobs
|
||||
lucky_block?
|
||||
intllib?
|
||||
|
|
7
init.lua
7
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",
|
||||
|
|
3
intllib.lua
Normal file
3
intllib.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
-- Support for the old multi-load method
|
||||
dofile(minetest.get_modpath("intllib").."/init.lua")
|
||||
|
Loading…
Reference in New Issue
Block a user