Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
bugfix: skip import inventory items with amount<1
Browse files Browse the repository at this point in the history
  • Loading branch information
rpaciorek committed Sep 10, 2023
1 parent d806df0 commit 13c4b13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dragonrescue-import.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>

<SourceControlInformationFeatureSupported>true</SourceControlInformationFeatureSupported>
<Version>0.3.0</Version>
<Version>0.3.1</Version>
<InformationalVersion>$(SourceRevisionId)</InformationalVersion>

<OutputPath>$(MSBuildThisFileDirectory)bin</OutputPath>
Expand Down
3 changes: 3 additions & 0 deletions src/Importers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ public static async System.Threading.Tasks.Task ImportInventory(LoginApi.Data lo
if (skipStables && userItem.Item.AssetName.Length >= 12 && userItem.Item.AssetName.Substring(0,12) == "DragonStable")
continue;

if (userItem.Quantity < 1)
continue;

if (userItem.ItemTier != null && userItem.ItemStats != null) {
battleInventoryChanges.Add(
new BattleItemTierMap{
Expand Down

0 comments on commit 13c4b13

Please sign in to comment.