diff --git a/Src/NationsConverterWeb/NationsConverterWeb/Components/Pages/DashboardAdd.razor b/Src/NationsConverterWeb/NationsConverterWeb/Components/Pages/DashboardAdd.razor index ed1b0271..efdaaff4 100644 --- a/Src/NationsConverterWeb/NationsConverterWeb/Components/Pages/DashboardAdd.razor +++ b/Src/NationsConverterWeb/NationsConverterWeb/Components/Pages/DashboardAdd.razor @@ -174,6 +174,8 @@ else if (ConversionSet is not null && SubCategory is not null && Environment is throw new Exception($"ItemInfo.Block is null - {filePath}"); } + var isJustResave = itemInfo.Block.Modifier is not "Air" and not "Ground"; + var item = new BlockItem { FileName = Path.GetFileName(filePath), @@ -181,6 +183,8 @@ else if (ConversionSet is not null && SubCategory is not null && Environment is Modifier = itemInfo.Block.Modifier ?? throw new Exception($"ItemInfo.Block.Modifier is null - {filePath}"), Variant = itemInfo.Block.Variant, SubVariant = itemInfo.Block.SubVariant, + JustResave = isJustResave, + Value = isJustResave ? 1 : 0 }; await Db.BlockItems.AddAsync(item);