Make mobs without hands unable to spill jugs (#31438)

* make mobs without hands unable to spill jugs

* snails
This commit is contained in:
slarticodefast
2024-09-09 13:02:15 +02:00
committed by GitHub
parent 82464dad26
commit 2187aef904
4 changed files with 2 additions and 20 deletions

View File

@@ -34,7 +34,7 @@ public abstract partial class SharedPuddleSystem
private void AddSpillVerb(Entity<SpillableComponent> entity, ref GetVerbsEvent<Verb> args)
{
if (!args.CanAccess || !args.CanInteract)
if (!args.CanAccess || !args.CanInteract || args.Hands == null)
return;
if (!_solutionContainerSystem.TryGetSolution(args.Target, entity.Comp.SolutionName, out var soln, out var solution))
@@ -46,10 +46,6 @@ public abstract partial class SharedPuddleSystem
if (solution.Volume == FixedPoint2.Zero)
return;
if (HasComp<PreventSpillerComponent>(args.User))
return;
Verb verb = new()
{
Text = Loc.GetString("spill-target-verb-get-data-text")