Включил джетпаки на станциях без гравитации. (#722)
* adfasvcxzv * убрал оскорбление :clueless:
This commit is contained in:
parent
fc30141a43
commit
a2255aba9d
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue