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 function get_min_digtime(caps)
|
||||
--[[local function get_min_digtime(caps)
|
||||
local mintime
|
||||
local unique = true
|
||||
local maxlevel = caps.maxlevel
|
||||
|
@ -25,7 +25,7 @@ local function get_min_digtime(caps)
|
|||
end
|
||||
end
|
||||
return mintime, unique
|
||||
end
|
||||
end]]
|
||||
|
||||
local function newline(str)
|
||||
if str ~= "" then
|
||||
|
@ -47,7 +47,7 @@ tt.register_snippet(function(itemstring, toolcaps)
|
|||
local minestring = ""
|
||||
local capstr = ""
|
||||
local caplines = 0
|
||||
for k,v in pairs(groupcaps) do
|
||||
for _,v in pairs(groupcaps) do
|
||||
local speedstr = ""
|
||||
local miningusesstr = ""
|
||||
-- Mining capabilities
|
||||
|
@ -153,9 +153,9 @@ tt.register_snippet(function(itemstring, toolcaps)
|
|||
end)
|
||||
|
||||
-- Weapon stats
|
||||
tt.register_snippet(function(itemstring)
|
||||
--[[tt.register_snippet(function(itemstring)
|
||||
local def = minetest.registered_items[itemstring]
|
||||
end)
|
||||
end)]]
|
||||
|
||||
-- Food
|
||||
tt.register_snippet(function(itemstring)
|
||||
|
|
|
@ -2,7 +2,7 @@ local S = minetest.get_translator("mcl_tt")
|
|||
|
||||
-- Armor
|
||||
tt.register_snippet(function(itemstring)
|
||||
local def = minetest.registered_items[itemstring]
|
||||
--local def = minetest.registered_items[itemstring]
|
||||
local s = ""
|
||||
local head = minetest.get_item_group(itemstring, "armor_head")
|
||||
local torso = minetest.get_item_group(itemstring, "armor_torso")
|
||||
|
@ -26,7 +26,7 @@ tt.register_snippet(function(itemstring)
|
|||
return s
|
||||
end)
|
||||
tt.register_snippet(function(itemstring, _, itemstack)
|
||||
local def = minetest.registered_items[itemstring]
|
||||
--local def = minetest.registered_items[itemstring]
|
||||
local s = ""
|
||||
local use = minetest.get_item_group(itemstring, "mcl_armor_uses")
|
||||
local pts = minetest.get_item_group(itemstring, "mcl_armor_points")
|
||||
|
@ -75,7 +75,7 @@ tt.register_snippet(function(itemstring)
|
|||
end)
|
||||
|
||||
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
|
||||
return S("Deals damage when falling"), mcl_colors.YELLOW
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue