Fix component generic usages where IComponent would not be valid (#19482)
This commit is contained in:
@@ -48,7 +48,7 @@ namespace Content.Server.Chemistry.EntitySystems
|
||||
if (!args.CanAccess || !args.CanInteract || !component.CanChangeTransferAmount || args.Hands == null)
|
||||
return;
|
||||
|
||||
if (!EntityManager.TryGetComponent<ActorComponent?>(args.User, out var actor))
|
||||
if (!EntityManager.TryGetComponent(args.User, out ActorComponent? actor))
|
||||
return;
|
||||
|
||||
// Custom transfer verb
|
||||
|
||||
Reference in New Issue
Block a user