From 3fc82e00d1f84b743c993fcb639c94bbb790c236 Mon Sep 17 00:00:00 2001 From: Will Berry <73126355+wdberry@users.noreply.github.com> Date: Wed, 29 Mar 2023 15:34:18 -0400 Subject: [PATCH] Remove superfluous conditional added prior to realizing filter can be cleared by right-clicking --- cybersyn/scripts/gui/inventory.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cybersyn/scripts/gui/inventory.lua b/cybersyn/scripts/gui/inventory.lua index 04ef2a6..14b55da 100644 --- a/cybersyn/scripts/gui/inventory.lua +++ b/cybersyn/scripts/gui/inventory.lua @@ -66,13 +66,9 @@ function inventory_tab.build(map_data, player_data) end end if search_network_name then - if search_network_name == (NETWORK_EACH or NETWORK_ANYTHING) then - goto has_match - end if search_network_name ~= station.network_name then goto continue end - ::has_match:: local train_flag = get_network_mask(station, station.network_name) if not bit32.btest(search_network_mask, train_flag) then goto continue