Skip to content

Commit

Permalink
v0.8.9.1, fix ammo filter
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Jan 19, 2022
1 parent 9a9c7d0 commit ab93b34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SharedUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private void SetupSortsAndCategories() {
var testItem = new Item();
for (int i = 0; i < ItemLoader.ItemCount; i++) {
testItem.SetDefaults(i);
if (testItem.useAmmo >= ItemLoader.ItemCount || testItem.ammo >= ItemLoader.ItemCount || testItem.useAmmo < 1 || testItem.ammo < 1)
if (testItem.useAmmo >= ItemLoader.ItemCount || testItem.ammo >= ItemLoader.ItemCount || testItem.useAmmo < 0 || testItem.ammo < 0)
continue; // Some mods misuse useAmmo
if (testItem.useAmmo > 0) {
useAmmoTypes.TryGetValue(testItem.useAmmo, out var currentCount);
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
author = jopojelly
version = 0.8.9
version = 0.8.9.1
displayName = Recipe Browser
homepage = https://forums.terraria.org/index.php?threads/recipe-browser.62462/
buildIgnore = .vs\*, Properties\*, *.csproj, *.user, *.config, unused\*, .git\*,

0 comments on commit ab93b34

Please sign in to comment.