Remove excess sfinv logging
This commit is contained in:
parent
192ddf052b
commit
39a963fe9c
1 changed files with 1 additions and 8 deletions
|
@ -25,7 +25,6 @@ end
|
||||||
function sfinv.parse_variables(fs, vars)
|
function sfinv.parse_variables(fs, vars)
|
||||||
local ret = fs
|
local ret = fs
|
||||||
for key, value in pairs(vars) do
|
for key, value in pairs(vars) do
|
||||||
print("Running " .. key .. "=" .. value .. " on string")
|
|
||||||
ret = string.gsub(ret, "{{([ ]+)" .. key .. "([ ]+)}}", value)
|
ret = string.gsub(ret, "{{([ ]+)" .. key .. "([ ]+)}}", value)
|
||||||
end
|
end
|
||||||
return ret
|
return ret
|
||||||
|
@ -36,7 +35,6 @@ function sfinv.get(player, context)
|
||||||
if not page then
|
if not page then
|
||||||
page = sfinv.pages["404"]
|
page = sfinv.pages["404"]
|
||||||
end
|
end
|
||||||
print(dump(page))
|
|
||||||
|
|
||||||
local fs = page:get(player, context)
|
local fs = page:get(player, context)
|
||||||
local nav = {}
|
local nav = {}
|
||||||
|
@ -53,9 +51,6 @@ function sfinv.get(player, context)
|
||||||
end
|
end
|
||||||
context.nav = nav_ids
|
context.nav = nav_ids
|
||||||
|
|
||||||
print(dump(context))
|
|
||||||
print(current_idx)
|
|
||||||
|
|
||||||
local vars = {
|
local vars = {
|
||||||
layout = theme,
|
layout = theme,
|
||||||
name = player:get_player_name(),
|
name = player:get_player_name(),
|
||||||
|
@ -77,9 +72,8 @@ function sfinv.set(player, context)
|
||||||
sfinv.contexts[name] = context
|
sfinv.contexts[name] = context
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
print("Setting " .. context.page)
|
|
||||||
local fs = sfinv.get(player, context)
|
local fs = sfinv.get(player, context)
|
||||||
print(fs)
|
|
||||||
player:set_inventory_formspec(fs)
|
player:set_inventory_formspec(fs)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -94,7 +88,6 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if formname ~= "" then
|
if formname ~= "" then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
print("Received fields! " .. dump(fields))
|
|
||||||
|
|
||||||
-- Get Context
|
-- Get Context
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
|
|
Loading…
Reference in a new issue