Remove obsolete transform call (#24217)

* Remove obsolete transform call

Shrimple PR also fixed bad flatpack call that would break on non-standard tilesizes.

* Update calls

* weh
This commit is contained in:
metalgearsloth
2024-02-02 00:39:43 +11:00
committed by GitHub
parent d4185144dd
commit 52808694e0
6 changed files with 21 additions and 12 deletions

View File

@@ -377,9 +377,9 @@ public abstract class SharedAnomalySystem : EntitySystem
var physQuery = GetEntityQuery<PhysicsComponent>();
var resultList = new List<TileRef>();
while (resultList.Count() < amount)
while (resultList.Count < amount)
{
if (tilerefs.Count() == 0)
if (tilerefs.Count == 0)
break;
var tileref = _random.Pick(tilerefs);
@@ -414,6 +414,7 @@ public abstract class SharedAnomalySystem : EntitySystem
continue;
}
}
resultList.Add(tileref);
}
return resultList;