mirror of
				https://github.com/minetest-mods/unified_inventory.git
				synced 2025-11-04 09:25:31 +01:00 
			
		
		
		
	Fix filter reset for empty search boxes
This commit is contained in:
		@@ -204,7 +204,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
 | 
			
		||||
					{to_player=player_name, gain = 1.0})
 | 
			
		||||
		end
 | 
			
		||||
	elseif fields.searchresetbutton then
 | 
			
		||||
		if ui.current_searchbox[player_name] ~= "" then
 | 
			
		||||
		if ui.activefilter[player_name] ~= "" then
 | 
			
		||||
			apply_new_filter(player, "", "nochange")
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user