Disable warnings that would be refactored anyway (#5047)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Content.Server.Mind.Components;
|
||||
using Content.Server.Roles;
|
||||
using Content.Shared.CharacterInfo;
|
||||
@@ -12,6 +13,7 @@ namespace Content.Server.CharacterInfo
|
||||
[RegisterComponent]
|
||||
public class CharacterInfoComponent : SharedCharacterInfoComponent
|
||||
{
|
||||
[Obsolete("Component Messages are deprecated, use Entity Events instead.")]
|
||||
public override void HandleNetworkMessage(ComponentMessage message, INetChannel netChannel, ICommonSession? session = null)
|
||||
{
|
||||
if(session?.AttachedEntity != Owner) return;
|
||||
@@ -50,7 +52,9 @@ namespace Content.Server.CharacterInfo
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning disable 618
|
||||
SendNetworkMessage(new CharacterInfoMessage(jobTitle, conditions));
|
||||
#pragma warning restore 618
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user