forked from MineClone5/MineClone5
[mcl_tt] fix some warnings
This commit is contained in:
parent
c19c05443e
commit
58510b00ee
|
@ -1,6 +1,6 @@
|
||||||
local S = minetest.get_translator("mcl_tt")
|
local S = minetest.get_translator("mcl_tt")
|
||||||
|
|
||||||
local function get_min_digtime(caps)
|
--[[local function get_min_digtime(caps)
|
||||||
local mintime
|
local mintime
|
||||||
local unique = true
|
local unique = true
|
||||||
local maxlevel = caps.maxlevel
|
local maxlevel = caps.maxlevel
|
||||||
|
@ -25,7 +25,7 @@ local function get_min_digtime(caps)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return mintime, unique
|
return mintime, unique
|
||||||
end
|
end]]
|
||||||
|
|
||||||
local function newline(str)
|
local function newline(str)
|
||||||
if str ~= "" then
|
if str ~= "" then
|
||||||
|
@ -47,7 +47,7 @@ tt.register_snippet(function(itemstring, toolcaps)
|
||||||
local minestring = ""
|
local minestring = ""
|
||||||
local capstr = ""
|
local capstr = ""
|
||||||
local caplines = 0
|
local caplines = 0
|
||||||
for k,v in pairs(groupcaps) do
|
for _,v in pairs(groupcaps) do
|
||||||
local speedstr = ""
|
local speedstr = ""
|
||||||
local miningusesstr = ""
|
local miningusesstr = ""
|
||||||
-- Mining capabilities
|
-- Mining capabilities
|
||||||
|
@ -153,9 +153,9 @@ tt.register_snippet(function(itemstring, toolcaps)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Weapon stats
|
-- Weapon stats
|
||||||
tt.register_snippet(function(itemstring)
|
--[[tt.register_snippet(function(itemstring)
|
||||||
local def = minetest.registered_items[itemstring]
|
local def = minetest.registered_items[itemstring]
|
||||||
end)
|
end)]]
|
||||||
|
|
||||||
-- Food
|
-- Food
|
||||||
tt.register_snippet(function(itemstring)
|
tt.register_snippet(function(itemstring)
|
||||||
|
|
|
@ -2,7 +2,7 @@ local S = minetest.get_translator("mcl_tt")
|
||||||
|
|
||||||
-- Armor
|
-- Armor
|
||||||
tt.register_snippet(function(itemstring)
|
tt.register_snippet(function(itemstring)
|
||||||
local def = minetest.registered_items[itemstring]
|
--local def = minetest.registered_items[itemstring]
|
||||||
local s = ""
|
local s = ""
|
||||||
local head = minetest.get_item_group(itemstring, "armor_head")
|
local head = minetest.get_item_group(itemstring, "armor_head")
|
||||||
local torso = minetest.get_item_group(itemstring, "armor_torso")
|
local torso = minetest.get_item_group(itemstring, "armor_torso")
|
||||||
|
@ -26,7 +26,7 @@ tt.register_snippet(function(itemstring)
|
||||||
return s
|
return s
|
||||||
end)
|
end)
|
||||||
tt.register_snippet(function(itemstring, _, itemstack)
|
tt.register_snippet(function(itemstring, _, itemstack)
|
||||||
local def = minetest.registered_items[itemstring]
|
--local def = minetest.registered_items[itemstring]
|
||||||
local s = ""
|
local s = ""
|
||||||
local use = minetest.get_item_group(itemstring, "mcl_armor_uses")
|
local use = minetest.get_item_group(itemstring, "mcl_armor_uses")
|
||||||
local pts = minetest.get_item_group(itemstring, "mcl_armor_points")
|
local pts = minetest.get_item_group(itemstring, "mcl_armor_points")
|
||||||
|
@ -75,7 +75,7 @@ tt.register_snippet(function(itemstring)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
tt.register_snippet(function(itemstring)
|
tt.register_snippet(function(itemstring)
|
||||||
local def = minetest.registered_items[itemstring]
|
--local def = minetest.registered_items[itemstring]
|
||||||
if minetest.get_item_group(itemstring, "crush_after_fall") == 1 then
|
if minetest.get_item_group(itemstring, "crush_after_fall") == 1 then
|
||||||
return S("Deals damage when falling"), mcl_colors.YELLOW
|
return S("Deals damage when falling"), mcl_colors.YELLOW
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue