Fix dev server crashes caused by putting pills in drinks, depositing spesos, making burgers (#33431)
* combine TrySpike into OnInteractUsing * mark spike drink event as handled * mark speso insertion event as handled * mark food sequence event as handled --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
@@ -39,7 +39,7 @@ public sealed class FoodSequenceSystem : SharedFoodSequenceSystem
|
|||||||
private void OnInteractUsing(Entity<FoodSequenceStartPointComponent> ent, ref InteractUsingEvent args)
|
private void OnInteractUsing(Entity<FoodSequenceStartPointComponent> ent, ref InteractUsingEvent args)
|
||||||
{
|
{
|
||||||
if (TryComp<FoodSequenceElementComponent>(args.Used, out var sequenceElement))
|
if (TryComp<FoodSequenceElementComponent>(args.Used, out var sequenceElement))
|
||||||
TryAddFoodElement(ent, (args.Used, sequenceElement), args.User);
|
args.Handled = TryAddFoodElement(ent, (args.Used, sequenceElement), args.User);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnIngredientAdded(Entity<FoodMetamorphableByAddingComponent> ent, ref FoodSequenceIngredientAddedEvent args)
|
private void OnIngredientAdded(Entity<FoodMetamorphableByAddingComponent> ent, ref FoodSequenceIngredientAddedEvent args)
|
||||||
|
|||||||
Reference in New Issue
Block a user