mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 22:11:10 +01:00
Creative: Reset search field when clicking on icon
This commit is contained in:
parent
352f5a55b1
commit
b53f1432b8
1 changed files with 2 additions and 3 deletions
|
@ -399,7 +399,6 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
set_inv_page("misc",player)
|
set_inv_page("misc",player)
|
||||||
page = "misc"
|
page = "misc"
|
||||||
elseif fields.nix then
|
elseif fields.nix then
|
||||||
if players[name].page == "all" then return end
|
|
||||||
set_inv_page("all",player)
|
set_inv_page("all",player)
|
||||||
page = "nix"
|
page = "nix"
|
||||||
elseif fields.food then
|
elseif fields.food then
|
||||||
|
@ -473,8 +472,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
end
|
end
|
||||||
players[name].start_i = start_i
|
players[name].start_i = start_i
|
||||||
|
|
||||||
local filter
|
local filter = ""
|
||||||
if fields.suche ~= nil and fields.suche ~= "" then
|
if not fields.nix and fields.suche ~= nil and fields.suche ~= "" then
|
||||||
filter = fields.suche
|
filter = fields.suche
|
||||||
players[name].filter = filter
|
players[name].filter = filter
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue