Skip to content

Commit ab93b34

Browse files
committed
v0.8.9.1, fix ammo filter
1 parent 9a9c7d0 commit ab93b34

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

SharedUI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ private void SetupSortsAndCategories() {
310310
var testItem = new Item();
311311
for (int i = 0; i < ItemLoader.ItemCount; i++) {
312312
testItem.SetDefaults(i);
313-
if (testItem.useAmmo >= ItemLoader.ItemCount || testItem.ammo >= ItemLoader.ItemCount || testItem.useAmmo < 1 || testItem.ammo < 1)
313+
if (testItem.useAmmo >= ItemLoader.ItemCount || testItem.ammo >= ItemLoader.ItemCount || testItem.useAmmo < 0 || testItem.ammo < 0)
314314
continue; // Some mods misuse useAmmo
315315
if (testItem.useAmmo > 0) {
316316
useAmmoTypes.TryGetValue(testItem.useAmmo, out var currentCount);

build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
author = jopojelly
2-
version = 0.8.9
2+
version = 0.8.9.1
33
displayName = Recipe Browser
44
homepage = https://forums.terraria.org/index.php?threads/recipe-browser.62462/
55
buildIgnore = .vs\*, Properties\*, *.csproj, *.user, *.config, unused\*, .git\*,

0 commit comments

Comments
 (0)