From 8bd61ba9a8eafc8ed07388d4ee0987c4399ff121 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 1 Feb 2020 04:18:30 +0100 Subject: [PATCH] Fix undeclared warnings in tt mod --- mods/tt/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/tt/init.lua b/mods/tt/init.lua index 5b19c29..fe663c5 100644 --- a/mods/tt/init.lua +++ b/mods/tt/init.lua @@ -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