Fix component generic usages where IComponent would not be valid (#19482)
This commit is contained in:
@@ -57,7 +57,7 @@ public sealed partial class AdminVerbSystem
|
||||
|
||||
private void AddTricksVerbs(GetVerbsEvent<Verb> args)
|
||||
{
|
||||
if (!EntityManager.TryGetComponent<ActorComponent?>(args.User, out var actor))
|
||||
if (!EntityManager.TryGetComponent(args.User, out ActorComponent? actor))
|
||||
return;
|
||||
|
||||
var player = actor.PlayerSession;
|
||||
|
||||
Reference in New Issue
Block a user