From: amatwiedle Date: Mon, 23 Dec 2024 19:54:18 +0000 (-0600) Subject: Fix borgs being able to drink from buckets and spray bottles. (#32964) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=b82605b18530c0d4398b9ad41a108868613cf81e;p=space-station-14.git 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 --- diff --git a/Content.Server/Nutrition/EntitySystems/DrinkSystem.cs b/Content.Server/Nutrition/EntitySystems/DrinkSystem.cs index 90a925e39f..44e90537b5 100644 --- a/Content.Server/Nutrition/EntitySystems/DrinkSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/DrinkSystem.cs @@ -165,6 +165,9 @@ public sealed class DrinkSystem : SharedDrinkSystem if (!HasComp(target)) return false; + if (!_body.TryGetBodyOrganEntityComps(target, out var stomachs)) + return false; + if (_openable.IsClosed(item, user)) return true;