mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Reduce uses of IComponentFactory.GetIndex(Type) (#5242)
* Update `RaiseComponentEvent` & component lifestatge methods * Fix ComponentNetworkGenerator * a * A
This commit is contained in:
@@ -275,7 +275,7 @@ namespace Robust.Shared.CompNetworkGenerator
|
||||
{
|
||||
eventRaise = @"
|
||||
var ev = new AfterAutoHandleStateEvent(args.Current);
|
||||
EntityManager.EventBus.RaiseComponentEvent(component, ref ev);";
|
||||
EntityManager.EventBus.RaiseComponentEvent(uid, component, ref ev);";
|
||||
}
|
||||
|
||||
return $@"// <auto-generated />
|
||||
|
||||
Reference in New Issue
Block a user