Remove atmos method events (#26402)
* Remove HasAtmosphereMethodEvent * Remove GetTileMixturesMethodEvent * Remove GetTileMixtureMethodEvent * Remove GetAdjacentTilesMethodEvent * Add TileMixtureEnumerator * Remove GetAdjacentTileMixturesMethodEvent * Remove IsTileSpaceMethodEvent * Remove HotspotExposeMethodEvent * Remove pipe net method events * Remove device method events * Use Entity<T> * Misc fixes * A * Theres probably a few more of these * Fix other resolve errors
This commit is contained in:
@@ -88,7 +88,11 @@ namespace Content.Server.Lathe
|
||||
|
||||
if (xform.GridUid != null)
|
||||
{
|
||||
_environments.AddRange(_atmosphere.GetAdjacentTileMixtures(xform.GridUid.Value, position, false, true));
|
||||
var enumerator = _atmosphere.GetAdjacentTileMixtures(xform.GridUid.Value, position, false, true);
|
||||
while (enumerator.MoveNext(out var mix))
|
||||
{
|
||||
_environments.Add(mix);
|
||||
}
|
||||
}
|
||||
|
||||
if (_environments.Count > 0)
|
||||
|
||||
Reference in New Issue
Block a user