Make raiselocalevent not broadcast by default (#8998)
This commit is contained in:
@@ -33,7 +33,7 @@ public sealed class ItemSystem : SharedItemSystem
|
||||
|
||||
// if the item is in a container, it might be equipped to hands or inventory slots --> update visuals.
|
||||
if (_containerSystem.TryGetContainingContainer(uid, out var container))
|
||||
RaiseLocalEvent(container.Owner, new VisualsChangedEvent(uid, container.ID));
|
||||
RaiseLocalEvent(container.Owner, new VisualsChangedEvent(uid, container.ID), true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -194,7 +194,7 @@ namespace Content.Client.Items.UI
|
||||
}
|
||||
|
||||
var collectMsg = new ItemStatusCollectMessage();
|
||||
_entityManager.EventBus.RaiseLocalEvent(_entity!.Value, collectMsg);
|
||||
_entityManager.EventBus.RaiseLocalEvent(_entity!.Value, collectMsg, true);
|
||||
|
||||
foreach (var control in collectMsg.Controls)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user