From a2255aba9da92e68a56f0cab48a8dafffa6bf446 Mon Sep 17 00:00:00 2001 From: pacable <77161122+pxc1984@users.noreply.github.com> Date: Wed, 27 Nov 2024 19:39:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BA=D0=BB=D1=8E=D1=87=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B4=D0=B6=D0=B5=D1=82=D0=BF=D0=B0=D0=BA=D0=B8=20=D0=BD=D0=B0?= =?UTF-8?q?=20=D1=81=D1=82=D0=B0=D0=BD=D1=86=D0=B8=D1=8F=D1=85=20=D0=B1?= =?UTF-8?q?=D0=B5=D0=B7=20=D0=B3=D1=80=D0=B0=D0=B2=D0=B8=D1=82=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8.=20(#722)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * adfasvcxzv * убрал оскорбление :clueless: --- Content.Shared/Movement/Systems/SharedJetpackSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Movement/Systems/SharedJetpackSystem.cs b/Content.Shared/Movement/Systems/SharedJetpackSystem.cs index 548594c01f..4c9dd81e7e 100644 --- a/Content.Shared/Movement/Systems/SharedJetpackSystem.cs +++ b/Content.Shared/Movement/Systems/SharedJetpackSystem.cs @@ -128,7 +128,8 @@ public abstract class SharedJetpackSystem : EntitySystem // No and no again! Do not attempt to activate the jetpack on a grid with gravity disabled. You will not be the first or the last to try this. // https://discord.com/channels/310555209753690112/310555209753690112/1270067921682694234 return gridUid == null || - (!HasComp(gridUid)); + TryComp(gridUid, out var gravity) && // Sunrise-edit + !gravity.Enabled; // Sunrise-edit } private void OnJetpackGetAction(EntityUid uid, JetpackComponent component, GetItemActionsEvent args)