Fix undeclared warnings in tt mod

This commit is contained in:
Wuzzy 2020-02-01 04:18:30 +01:00
parent 035f72c550
commit 8bd61ba9a8
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ local function append_descs()
if def._tt_food then
desc = desc .. "\n" .. minetest.colorize(COLOR_DEFAULT, S("Food item"))
if def._tt_food_hp then
msg = S("+@1 food points", def._tt_food_hp)
local msg = S("+@1 food points", def._tt_food_hp)
desc = desc .. "\n" .. minetest.colorize(COLOR_DEFAULT, msg)
end
-- NOTE: This is unused atm
@ -95,7 +95,7 @@ local function append_descs()
if minetest.get_item_group(itemstring, "slippery") >= 1 then
desc = desc .. "\n" .. minetest.colorize(COLOR_DEFAULT, S("Slippery"))
end
tmp = minetest.get_item_group(itemstring, "bouncy")
local tmp = minetest.get_item_group(itemstring, "bouncy")
if tmp >= 1 then
desc = desc .. "\n" .. minetest.colorize(COLOR_DEFAULT, S("Bouncy (@1%)", tmp))
end