Skip to content

Commit

Permalink
Fix: Server Now Reads Request Grid Rather than Location Grid (#132)
Browse files Browse the repository at this point in the history
When originally coded for frontier both the target grid and the location
grid were the same. i missed that the server was not reading the grid
sent in the request but rather the grid the console was sitting on. on a
normal station this manifests its self by making it look like the cruise
control is not working, however what is going on is that you are
changing the dampening values of the station, not the shuttle. oops

I also hate the names they changed the dampeners to, but i am to lazy to
go change those :) enjoy

:cl:
- fix: Fixed inertia dampeners

Co-authored-by: neuPanda <[email protected]>
Co-authored-by: sleepyyapril <[email protected]>
  • Loading branch information
3 people authored Jan 5, 2025
1 parent 6a98e4f commit 5f57f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/_NF/Shuttles/Systems/ShuttleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private void NfInitialize()
private void OnSetInertiaDampening(EntityUid uid, ShuttleConsoleComponent component, SetInertiaDampeningRequest args)
{
// Ensure that the entity requested is a valid shuttle (stations should not be togglable)
if (!EntityManager.TryGetComponent(uid, out TransformComponent? transform) ||
if (!EntityManager.TryGetComponent(GetEntity(args.ShuttleEntityUid), out TransformComponent? transform) ||
!transform.GridUid.HasValue ||
!EntityManager.TryGetComponent(transform.GridUid, out PhysicsComponent? physicsComponent) ||
!EntityManager.TryGetComponent(transform.GridUid, out ShuttleComponent? shuttleComponent))
Expand Down

0 comments on commit 5f57f4c

Please sign in to comment.