Skip to content

Commit

Permalink
adfasvcxzv
Browse files Browse the repository at this point in the history
  • Loading branch information
pxc1984 committed Nov 27, 2024
1 parent 8086258 commit 7aab7eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Content.Shared/Movement/Systems/SharedJetpackSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ private bool CanEnableOnGrid(EntityUid? gridUid)
{
// 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
// Sunrise-edit: Иди нахуй, лазик, это весело :clueless:
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)
Expand Down

0 comments on commit 7aab7eb

Please sign in to comment.