Gets rid of all ComponentManager usages. (#4707)
This commit is contained in:
committed by
GitHub
parent
7953e5b962
commit
0be5ff829b
@@ -21,7 +21,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
if (args.Handled)
|
||||
return;
|
||||
|
||||
if (!ComponentManager.TryGetComponent(uid, out SmokableComponent? smokable))
|
||||
if (!EntityManager.TryGetComponent(uid, out SmokableComponent? smokable))
|
||||
return;
|
||||
|
||||
if (smokable.State != SmokableState.Lit)
|
||||
@@ -36,7 +36,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
if (args.Handled)
|
||||
return;
|
||||
|
||||
if (!ComponentManager.TryGetComponent(uid, out SmokableComponent? smokable))
|
||||
if (!EntityManager.TryGetComponent(uid, out SmokableComponent? smokable))
|
||||
return;
|
||||
|
||||
if (smokable.State != SmokableState.Unlit)
|
||||
|
||||
Reference in New Issue
Block a user