Fix borgs being able to drink from buckets and spray bottles. (#32964)
* Added a check for if the entity trying to drink is a borg. * Fixed missing namespace issue. * Improved code conciseness. * Removed borg chassis check, added stomach check. * Removed unused namespace --------- Co-authored-by: dankeaj <andrewjdanke@gmail.com>
This commit is contained in:
@@ -165,6 +165,9 @@ public sealed class DrinkSystem : SharedDrinkSystem
|
||||
if (!HasComp<BodyComponent>(target))
|
||||
return false;
|
||||
|
||||
if (!_body.TryGetBodyOrganEntityComps<StomachComponent>(target, out var stomachs))
|
||||
return false;
|
||||
|
||||
if (_openable.IsClosed(item, user))
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user