Removed the Sender object from events. If you needed this field, add it to the event class.
This commit is contained in:
@@ -80,7 +80,7 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
_audioSystem = EntitySystemManager.GetEntitySystem<AudioSystem>();
|
||||
}
|
||||
|
||||
private static void PlayerAttached(object sender, PlayerAttachSystemMessage ev)
|
||||
private static void PlayerAttached(PlayerAttachSystemMessage ev)
|
||||
{
|
||||
if (!ev.Entity.HasComponent<IMoverComponent>())
|
||||
{
|
||||
@@ -88,7 +88,7 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
}
|
||||
}
|
||||
|
||||
private static void PlayerDetached(object sender, PlayerDetachedSystemMessage ev)
|
||||
private static void PlayerDetached(PlayerDetachedSystemMessage ev)
|
||||
{
|
||||
if(ev.Entity.HasComponent<PlayerInputMoverComponent>())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user