From 4b0b5ab35b691013c387c889cca2fc53ceeb7555 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 6 Sep 2016 15:13:46 +0200 Subject: [PATCH] Fix variable warnings --- easyvend.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyvend.lua b/easyvend.lua index c46bdd3..b01acb2 100644 --- a/easyvend.lua +++ b/easyvend.lua @@ -179,7 +179,6 @@ easyvend.set_formspec = function(pos, player) .."tooltip[wear;"..minetest.formspec_escape(weartooltip).."]" end else - local itemname = meta:get_string("itemname") formspec = formspec .."item_image_button[0,1.65;1,1;"..easyvend.currency..";easyvend.currency_image;]" .."item_image_button[0,0.35;1,1;"..itemname..";item_image;]" @@ -946,6 +945,7 @@ easyvend.assign_joke = function(buysell) end easyvend.get_joke = function(buysell, id) + local joke if buysell == nil or id == nil then -- Fallback message (should never happen) return "Items exchanged." -- 2.11.4.GIT