[#30096 Fix] Dumping a RefillableSolution into a DumpableSolution now requires CanComplexInteract (#33350)

* dumping containers now require having at least one hand

* Cleanup

* Better

* Apply suggested changes

* Cleanup

---------

Co-authored-by: Luiz Costa <luiz@mavromati.com>
This commit is contained in:
MilenVolf
2025-04-19 23:32:17 +03:00
committed by GitHub
parent cb5a0fbbb3
commit 6f475741b2
3 changed files with 9 additions and 0 deletions

View File

@@ -14,6 +14,12 @@ public sealed partial class PuddleSystem
private void OnRefillableDragged(Entity<RefillableSolutionComponent> entity, ref DragDropDraggedEvent args)
{
if (!_actionBlocker.CanComplexInteract(args.User))
{
_popups.PopupEntity(Loc.GetString("mopping-system-no-hands"), args.User, args.User);
return;
}
if (!_solutionContainerSystem.TryGetSolution(entity.Owner, entity.Comp.Solution, out var soln, out var solution) || solution.Volume == FixedPoint2.Zero)
{
_popups.PopupEntity(Loc.GetString("mopping-system-empty", ("used", entity.Owner)), entity, args.User);