Compare commits
No commits in common. "2f881a219bdf89e3368b716cac979769bf4e0b15" and "f099d7658b058fa8cb226ed97e417c8cbaee149a" have entirely different histories.
2f881a219b
...
f099d7658b
32
init.lua
32
init.lua
@ -1,26 +1,6 @@
|
|||||||
-- support for i18n
|
-- support for i18n
|
||||||
-- Intllib
|
local S = minetest.get_translator(minetest.get_current_modname())
|
||||||
local S
|
|
||||||
if minetest.get_translator ~= nil then
|
|
||||||
S = minetest.get_translator("ethereal") -- 5.x translation function
|
|
||||||
else
|
|
||||||
if minetest.get_modpath("intllib") then
|
|
||||||
dofile(minetest.get_modpath("intllib") .. "/init.lua")
|
|
||||||
if intllib.make_gettext_pair then
|
|
||||||
gettext, ngettext = intllib.make_gettext_pair() -- new gettext method
|
|
||||||
else
|
|
||||||
gettext = intllib.Getter() -- old text file method
|
|
||||||
end
|
|
||||||
S = gettext
|
|
||||||
else -- boilerplate function
|
|
||||||
S = function(str, ...)
|
|
||||||
local args = {...}
|
|
||||||
return str:gsub("@%d+", function(match)
|
|
||||||
return args[tonumber(match:sub(2))]
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.global_exists("armor") and armor.elements then
|
if minetest.global_exists("armor") and armor.elements then
|
||||||
table.insert(armor.elements, "hands")
|
table.insert(armor.elements, "hands")
|
||||||
@ -28,14 +8,6 @@ end
|
|||||||
|
|
||||||
-- Regisiter Gloves/Gauntlets
|
-- Regisiter Gloves/Gauntlets
|
||||||
|
|
||||||
armor:register_armor("3d_armor_gloves:gloves_admin", {
|
|
||||||
description = S("Admin Gauntlets"),
|
|
||||||
inventory_image = "3d_armor_gloves_inv_gloves_admin.png",
|
|
||||||
groups = {armor_hands=1000, armor_heal=100, armor_use=0, not_in_creative_inventory=1},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_alias("admingloves", "3d_armor_gloves:gloves_admin")
|
|
||||||
|
|
||||||
if armor.materials.wood then
|
if armor.materials.wood then
|
||||||
armor:register_armor("3d_armor_gloves:gloves_wood", {
|
armor:register_armor("3d_armor_gloves:gloves_wood", {
|
||||||
description = S("Wood Gauntlets"),
|
description = S("Wood Gauntlets"),
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 328 B |
Binary file not shown.
Before Width: | Height: | Size: 301 B |
Binary file not shown.
Before Width: | Height: | Size: 298 B |
Loading…
x
Reference in New Issue
Block a user