Prevent storing liquids in equipped buckets (#24412)
* Block access to solutions in equipped spillables. * Stop Drink verb appearing if the solution can't be accessed.
This commit is contained in:
@@ -410,6 +410,10 @@ public sealed class DrinkSystem : EntitySystem
|
||||
!_body.TryGetBodyOrganComponents<StomachComponent>(ev.User, out var stomachs, body))
|
||||
return;
|
||||
|
||||
// Make sure the solution exists
|
||||
if (!_solutionContainer.TryGetSolution(entity.Owner, entity.Comp.Solution, out var solution))
|
||||
return;
|
||||
|
||||
// no drinking from living drinks, have to kill them first.
|
||||
if (_mobState.IsAlive(entity))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user