mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 17:45:10 +00: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)
|
||||
page = "misc"
|
||||
elseif fields.nix then
|
||||
if players[name].page == "all" then return end
|
||||
set_inv_page("all",player)
|
||||
page = "nix"
|
||||
elseif fields.food then
|
||||
|
@ -473,8 +472,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
end
|
||||
players[name].start_i = start_i
|
||||
|
||||
local filter
|
||||
if fields.suche ~= nil and fields.suche ~= "" then
|
||||
local filter = ""
|
||||
if not fields.nix and fields.suche ~= nil and fields.suche ~= "" then
|
||||
filter = fields.suche
|
||||
players[name].filter = filter
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue