Make raiselocalevent not broadcast by default (#8998)
This commit is contained in:
@@ -181,7 +181,7 @@ namespace Content.Server.Mind
|
||||
var message = new RoleAddedEvent(role);
|
||||
if (OwnedEntity != null)
|
||||
{
|
||||
IoCManager.Resolve<IEntityManager>().EventBus.RaiseLocalEvent(OwnedEntity.Value, message);
|
||||
IoCManager.Resolve<IEntityManager>().EventBus.RaiseLocalEvent(OwnedEntity.Value, message, true);
|
||||
}
|
||||
|
||||
return role;
|
||||
@@ -207,7 +207,7 @@ namespace Content.Server.Mind
|
||||
|
||||
if (OwnedEntity != null)
|
||||
{
|
||||
IoCManager.Resolve<IEntityManager>().EventBus.RaiseLocalEvent(OwnedEntity.Value, message);
|
||||
IoCManager.Resolve<IEntityManager>().EventBus.RaiseLocalEvent(OwnedEntity.Value, message, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -411,7 +411,7 @@ namespace Content.Server.Mind
|
||||
|
||||
var entities = IoCManager.Resolve<IEntityManager>();
|
||||
entities.RemoveComponent<VisitingMindComponent>(oldVisitingEnt);
|
||||
entities.EventBus.RaiseLocalEvent(oldVisitingEnt, new MindUnvisitedMessage());
|
||||
entities.EventBus.RaiseLocalEvent(oldVisitingEnt, new MindUnvisitedMessage(), true);
|
||||
}
|
||||
|
||||
public bool TryGetSession([NotNullWhen(true)] out IPlayerSession? session)
|
||||
|
||||
@@ -42,7 +42,7 @@ public sealed class MindSystem : EntitySystem
|
||||
return;
|
||||
|
||||
mind.Mind = value;
|
||||
RaiseLocalEvent(uid, new MindAddedMessage());
|
||||
RaiseLocalEvent(uid, new MindAddedMessage(), true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -56,7 +56,7 @@ public sealed class MindSystem : EntitySystem
|
||||
return;
|
||||
|
||||
if (!Deleted(uid))
|
||||
RaiseLocalEvent(uid, new MindRemovedMessage());
|
||||
RaiseLocalEvent(uid, new MindRemovedMessage(), true);
|
||||
|
||||
mind.Mind = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user