Replace Component.OnRemove with ComponentRemove event subscriptions (#21072)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Physics.Dynamics.Joints;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Pulling.Components
|
||||
@@ -39,16 +38,6 @@ namespace Content.Shared.Pulling.Components
|
||||
[Access(typeof(SharedPullingSystem), Other = AccessPermissions.ReadExecute)]
|
||||
[ViewVariables]
|
||||
public bool PrevFixedRotation;
|
||||
|
||||
protected override void OnRemove()
|
||||
{
|
||||
if (Puller != null)
|
||||
{
|
||||
// This is absolute paranoia but it's also absolutely necessary. Too many puller state bugs. - 20kdc
|
||||
Logger.ErrorS("c.go.c.pulling", "PULLING STATE CORRUPTION IMMINENT IN PULLABLE {0} - OnRemove called when Puller is set!", Owner);
|
||||
}
|
||||
base.OnRemove();
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
|
||||
Reference in New Issue
Block a user