.Keys.Contains() -> .ContainsKey() (#12873)
This commit is contained in:
committed by
GitHub
parent
b707b788ac
commit
90cc6e391b
@@ -84,7 +84,7 @@ namespace Content.Client.Radiation.Overlays
|
|||||||
{
|
{
|
||||||
var pulseEntity = pulse.Owner;
|
var pulseEntity = pulse.Owner;
|
||||||
|
|
||||||
if (!_pulses.Keys.Contains(pulseEntity) && PulseQualifies(pulseEntity, currentEyeLoc))
|
if (!_pulses.ContainsKey(pulseEntity) && PulseQualifies(pulseEntity, currentEyeLoc))
|
||||||
{
|
{
|
||||||
_pulses.Add(
|
_pulses.Add(
|
||||||
pulseEntity,
|
pulseEntity,
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ namespace Content.Server.Body.Systems
|
|||||||
|
|
||||||
foreach (var group in meta.MetabolismGroups)
|
foreach (var group in meta.MetabolismGroups)
|
||||||
{
|
{
|
||||||
if (!proto.Metabolisms.Keys.Contains(group.Id))
|
if (!proto.Metabolisms.ContainsKey(group.Id))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var entry = proto.Metabolisms[group.Id];
|
var entry = proto.Metabolisms[group.Id];
|
||||||
|
|||||||
Reference in New Issue
Block a user