mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03: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