Update Crafting

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

@ -17,8 +17,7 @@ namespace ValblazeProject.Components
public bool NoDrop { get; set; } public bool NoDrop { get; set; }
[CascadingParameter] [CascadingParameter]
public Inventaire Parent { get; set; } public Crafting Parent { get; set; }
//public Crafting Parent { get; set; }
internal void OnDragEnter() internal void OnDragEnter()
{ {
@ -48,12 +47,12 @@ namespace ValblazeProject.Components
} }
this.Item = Parent.CurrentDragItem; 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 }); Parent.Actions.Add(new CraftingAction { Action = "Drop", Item = this.Item, Index = this.Index });
// Check recipe // Check recipe
//Parent.CheckRecipe(); Parent.CheckRecipe();
} }
internal void OnDragStart() internal void OnDragStart()

Loading…
Cancel
Save