1
0
Fork 0

Much more efficient creative search tab

objects
Wuzzy 2017-01-24 21:58:11 +01:00
parent bc9bbdd399
commit e70ef935d4
1 changed files with 3 additions and 8 deletions

View File

@ -303,13 +303,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
return return
end end
if fields.bgcolor then
minetest.chat_send_all("jupp")
end
local name = player:get_player_name() local name = player:get_player_name()
if not name or name == "" then
minetest.log("error", "NONAME")
end
if fields.blocks then if fields.blocks then
set_inv("\0blocks",player) set_inv("\0blocks",player)
page = "blocks" page = "blocks"
@ -345,10 +340,10 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
page = "matr" page = "matr"
elseif fields.inv then elseif fields.inv then
page = "inv" page = "inv"
elseif fields.suche == "" then elseif fields.suche == "" and not fields.creative_next and not fields.creative_prev then
set_inv("\0all", player) set_inv("\0all", player)
page = "nix" page = "nix"
elseif fields.suche ~= nil then elseif fields.suche ~= nil and not fields.creative_next and not fields.creative_prev then
set_inv(string.lower(fields.suche),player) set_inv(string.lower(fields.suche),player)
page = "nix" page = "nix"
end end