Fix component generic usages where IComponent would not be valid (#19482)
This commit is contained in:
@@ -43,7 +43,7 @@ namespace Content.Server.Animals.Systems
|
||||
udder.AccumulatedFrameTime -= udder.UpdateRate;
|
||||
|
||||
// Actually there is food digestion so no problem with instant reagent generation "OnFeed"
|
||||
if (EntityManager.TryGetComponent<HungerComponent?>(udder.Owner, out var hunger))
|
||||
if (EntityManager.TryGetComponent(udder.Owner, out HungerComponent? hunger))
|
||||
{
|
||||
// Is there enough nutrition to produce reagent?
|
||||
if (_hunger.GetHungerThreshold(hunger) < HungerThreshold.Peckish)
|
||||
|
||||
Reference in New Issue
Block a user