Make mobs without hands unable to spill jugs (#31438)
* make mobs without hands unable to spill jugs * snails
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user