Fix debug assert in ScoopableSolution (#35225)

* Fix debug assert in ScoopableSolution

* Don't stomp the old Handled value
This commit is contained in:
Tayrtahn
2025-02-16 19:29:30 -05:00
committed by GitHub
parent a7bebeffb3
commit 04c88e86b3

View File

@@ -24,7 +24,10 @@ public sealed class ScoopableSolutionSystem : EntitySystem
private void OnInteractUsing(Entity<ScoopableSolutionComponent> ent, ref InteractUsingEvent args) private void OnInteractUsing(Entity<ScoopableSolutionComponent> ent, ref InteractUsingEvent args)
{ {
TryScoop(ent, args.Used, args.User); if (args.Handled)
return;
args.Handled = TryScoop(ent, args.Used, args.User);
} }
public bool TryScoop(Entity<ScoopableSolutionComponent> ent, EntityUid beaker, EntityUid user) public bool TryScoop(Entity<ScoopableSolutionComponent> ent, EntityUid beaker, EntityUid user)