From 705901dc6a6af89e6caf7f09349c8dba8c48ca56 Mon Sep 17 00:00:00 2001 From: Louis DUFOUR Date: Thu, 29 Dec 2022 21:34:10 +0100 Subject: [PATCH] Update Crafting --- ValblazeProject/Components/CraftingItem.razor.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ValblazeProject/Components/CraftingItem.razor.cs b/ValblazeProject/Components/CraftingItem.razor.cs index 04c20b3..7cd30f2 100644 --- a/ValblazeProject/Components/CraftingItem.razor.cs +++ b/ValblazeProject/Components/CraftingItem.razor.cs @@ -17,8 +17,7 @@ namespace ValblazeProject.Components public bool NoDrop { get; set; } [CascadingParameter] - public Inventaire Parent { get; set; } - //public Crafting Parent { get; set; } + public Crafting Parent { get; set; } internal void OnDragEnter() { @@ -48,12 +47,12 @@ namespace ValblazeProject.Components } this.Item = Parent.CurrentDragItem; - //Parent.RecipeItems[this.Index] = this.Item; + Parent.RecipeItems[this.Index] = this.Item; Parent.Actions.Add(new CraftingAction { Action = "Drop", Item = this.Item, Index = this.Index }); // Check recipe - //Parent.CheckRecipe(); + Parent.CheckRecipe(); } internal void OnDragStart()