[#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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user