Remove some erroneous compadd subs (#19576)
This commit is contained in:
@@ -47,8 +47,8 @@ namespace Content.Client.Hands.Systems
|
||||
|
||||
SubscribeLocalEvent<HandsComponent, PlayerAttachedEvent>(HandlePlayerAttached);
|
||||
SubscribeLocalEvent<HandsComponent, PlayerDetachedEvent>(HandlePlayerDetached);
|
||||
SubscribeLocalEvent<HandsComponent, ComponentAdd>(HandleCompAdd);
|
||||
SubscribeLocalEvent<HandsComponent, ComponentRemove>(HandleCompRemove);
|
||||
SubscribeLocalEvent<HandsComponent, ComponentStartup>(OnHandsStartup);
|
||||
SubscribeLocalEvent<HandsComponent, ComponentShutdown>(OnHandsShutdown);
|
||||
SubscribeLocalEvent<HandsComponent, ComponentHandleState>(HandleComponentState);
|
||||
SubscribeLocalEvent<HandsComponent, VisualsChangedEvent>(OnVisualsChanged);
|
||||
|
||||
@@ -399,13 +399,13 @@ namespace Content.Client.Hands.Systems
|
||||
OnPlayerHandsRemoved?.Invoke();
|
||||
}
|
||||
|
||||
private void HandleCompAdd(EntityUid uid, HandsComponent component, ComponentAdd args)
|
||||
private void OnHandsStartup(EntityUid uid, HandsComponent component, ComponentStartup args)
|
||||
{
|
||||
if (_playerManager.LocalPlayer?.ControlledEntity == uid)
|
||||
OnPlayerHandsAdded?.Invoke(component);
|
||||
}
|
||||
|
||||
private void HandleCompRemove(EntityUid uid, HandsComponent component, ComponentRemove args)
|
||||
private void OnHandsShutdown(EntityUid uid, HandsComponent component, ComponentShutdown args)
|
||||
{
|
||||
if (_playerManager.LocalPlayer?.ControlledEntity == uid)
|
||||
OnPlayerHandsRemoved?.Invoke();
|
||||
|
||||
@@ -29,7 +29,14 @@ namespace Content.Server.Shuttles.Components
|
||||
/// <summary>
|
||||
/// The thrusters contributing to each direction for impulse.
|
||||
/// </summary>
|
||||
public readonly List<EntityUid>[] LinearThrusters = new List<EntityUid>[4];
|
||||
// No touchy
|
||||
public readonly List<EntityUid>[] LinearThrusters = new List<EntityUid>[]
|
||||
{
|
||||
new(),
|
||||
new(),
|
||||
new(),
|
||||
new(),
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The thrusters contributing to the angular impulse of the shuttle.
|
||||
|
||||
@@ -54,7 +54,6 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
|
||||
InitializeIFF();
|
||||
InitializeImpact();
|
||||
|
||||
SubscribeLocalEvent<ShuttleComponent, ComponentAdd>(OnShuttleAdd);
|
||||
SubscribeLocalEvent<ShuttleComponent, ComponentStartup>(OnShuttleStartup);
|
||||
SubscribeLocalEvent<ShuttleComponent, ComponentShutdown>(OnShuttleShutdown);
|
||||
|
||||
@@ -82,15 +81,6 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
|
||||
CleanupHyperspace();
|
||||
}
|
||||
|
||||
private void OnShuttleAdd(EntityUid uid, ShuttleComponent component, ComponentAdd args)
|
||||
{
|
||||
// Easier than doing it in the comp and they don't have constructors.
|
||||
for (var i = 0; i < component.LinearThrusters.Length; i++)
|
||||
{
|
||||
component.LinearThrusters[i] = new List<EntityUid>();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnGridFixtureChange(EntityUid uid, FixturesComponent manager, GridFixtureChangeEvent args)
|
||||
{
|
||||
foreach (var fixture in args.NewFixtures)
|
||||
|
||||
Reference in New Issue
Block a user