Включил джетпаки на станциях без гравитации. (#722)

* adfasvcxzv

* убрал оскорбление :clueless:
This commit is contained in:
pacable 2024-11-27 19:39:56 +03:00 committed by GitHub
parent fc30141a43
commit a2255aba9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<GravityComponent>(gridUid));
TryComp<GravityComponent>(gridUid, out var gravity) && // Sunrise-edit
!gravity.Enabled; // Sunrise-edit
}
private void OnJetpackGetAction(EntityUid uid, JetpackComponent component, GetItemActionsEvent args)