Update Crafting

master
Louis DUFOUR 2 years ago
parent 7a013f421d
commit 705901dc6a

@ -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()

Loading…
Cancel
Save