Minor comp message removal (#6733)

This commit is contained in:
mirrorcult
2022-02-15 20:04:33 -07:00
committed by GitHub
parent 9d422d0762
commit e427381be6
9 changed files with 19 additions and 190 deletions

View File

@@ -237,9 +237,8 @@ namespace Content.Server.Buckle.Components
UpdateBuckleStatus();
#pragma warning disable 618
SendMessage(new BuckleMessage(Owner, to));
#pragma warning restore 618
var ev = new BuckleChangeEvent() { Buckling = true, Strap = BuckledTo.Owner };
_entMan.EventBus.RaiseLocalEvent(Owner, ev, false);
if (_entMan.TryGetComponent(Owner, out SharedPullableComponent? ownerPullable))
{
@@ -330,9 +329,8 @@ namespace Content.Server.Buckle.Components
oldBuckledTo.Remove(this);
SoundSystem.Play(Filter.Pvs(Owner), oldBuckledTo.UnbuckleSound.GetSound(), Owner);
#pragma warning disable 618
SendMessage(new UnbuckleMessage(Owner, oldBuckledTo.Owner));
#pragma warning restore 618
var ev = new BuckleChangeEvent() { Buckling = false, Strap = oldBuckledTo.Owner };
_entMan.EventBus.RaiseLocalEvent(Owner, ev, false);
return true;
}