mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 16:17:27 +00:00
Inline GetComponentOrNull
This commit is contained in:
@@ -91,7 +91,7 @@ namespace Content.Server.Storage.EntitySystems
|
||||
return;
|
||||
|
||||
// Get the session for the user
|
||||
var session = args.User.GetComponentOrNull<ActorComponent>()?.PlayerSession;
|
||||
var session = IoCManager.Resolve<IEntityManager>().GetComponentOrNull<ActorComponent>(args.User.Uid)?.PlayerSession;
|
||||
if (session == null)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user