From 39a963fe9cea959b8f4f57b1e47b9d9fb4366132 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 27 Feb 2016 04:21:34 +0000 Subject: [PATCH] Remove excess sfinv logging --- mods/sfinv/api.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/mods/sfinv/api.lua b/mods/sfinv/api.lua index 3982fda..ef1116a 100644 --- a/mods/sfinv/api.lua +++ b/mods/sfinv/api.lua @@ -25,7 +25,6 @@ end function sfinv.parse_variables(fs, vars) local ret = fs for key, value in pairs(vars) do - print("Running " .. key .. "=" .. value .. " on string") ret = string.gsub(ret, "{{([ ]+)" .. key .. "([ ]+)}}", value) end return ret @@ -36,7 +35,6 @@ function sfinv.get(player, context) if not page then page = sfinv.pages["404"] end - print(dump(page)) local fs = page:get(player, context) local nav = {} @@ -53,9 +51,6 @@ function sfinv.get(player, context) end context.nav = nav_ids - print(dump(context)) - print(current_idx) - local vars = { layout = theme, name = player:get_player_name(), @@ -77,9 +72,8 @@ function sfinv.set(player, context) sfinv.contexts[name] = context end end - print("Setting " .. context.page) + local fs = sfinv.get(player, context) - print(fs) player:set_inventory_formspec(fs) end @@ -94,7 +88,6 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) if formname ~= "" then return false end - print("Received fields! " .. dump(fields)) -- Get Context local name = player:get_player_name()