forked from mtcontrib/tsm_pyramids
Add intllib support
This commit is contained in:
12
mummy.lua
12
mummy.lua
@ -1,4 +1,10 @@
|
||||
--pyramids = {}
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
|
||||
local mummy_walk_limit = 1
|
||||
local mummy_chillaxin_speed = 1
|
||||
@ -305,7 +311,7 @@ minetest.register_entity("tsm_pyramids:mummy_spawner", spawner_DEF)
|
||||
--spawn-egg/spawner
|
||||
|
||||
minetest.register_craftitem("tsm_pyramids:spawn_egg", {
|
||||
description = "Mummy spawn-egg",
|
||||
description = S("Mummy spawn-egg"),
|
||||
inventory_image = "tsm_pyramids_mummy_egg.png",
|
||||
liquids_pointable = false,
|
||||
stack_max = 99,
|
||||
@ -333,7 +339,7 @@ else
|
||||
end
|
||||
|
||||
minetest.register_node("tsm_pyramids:spawner_mummy", {
|
||||
description = "Mummy spawner",
|
||||
description = S("Mummy spawner"),
|
||||
paramtype = "light",
|
||||
tiles = {"tsm_pyramids_spawner.png"},
|
||||
is_ground_content = false,
|
||||
|
Reference in New Issue
Block a user