Skip to content

Commit

Permalink
Revert "Don't Delete StandardNanotrasenStation"
Browse files Browse the repository at this point in the history
This reverts commit ad2cbff.
  • Loading branch information
Rinary1 committed Jun 14, 2024
1 parent ad2cbff commit ff767c8
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions Content.IntegrationTests/Tests/EntityTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,8 @@ await server.WaitPost(() =>
var entityMetas = Query<MetaDataComponent>(entityMan).ToList();
foreach (var (uid, meta) in entityMetas)
{
// Check the prototype ID before deleting the entity
if (meta.EntityPrototype?.ID == "StandardNanotrasenStation")
{
continue; // Skip deleting this entity
}

if (!meta.EntityDeleted)
{
entityMan.DeleteEntity(uid);
}
}

Assert.That(entityMan.EntityCount, Is.Zero);
Expand Down Expand Up @@ -135,16 +127,8 @@ await server.WaitPost(() =>
var entityMetas = Query<MetaDataComponent>(entityMan).ToList();
foreach (var (uid, meta) in entityMetas)
{
// Check the prototype ID before deleting the entity
if (meta.EntityPrototype?.ID == "StandardNanotrasenStation")
{
continue; // Skip deleting this entity
}

if (!meta.EntityDeleted)
{
entityMan.DeleteEntity(uid);
}
}

Assert.That(entityMan.EntityCount, Is.Zero);
Expand Down Expand Up @@ -217,16 +201,8 @@ await server.WaitPost(() =>
var entityMetas = Query<MetaDataComponent>(sEntMan).ToList();
foreach (var (uid, meta) in entityMetas)
{
// Check the prototype ID before deleting the entity
if (meta.EntityPrototype?.ID == "StandardNanotrasenStation")
{
continue; // Skip deleting this entity
}

if (!meta.EntityDeleted)
{
sEntMan.DeleteEntity(uid);
}
}

Assert.That(sEntMan.EntityCount, Is.Zero);
Expand Down

0 comments on commit ff767c8

Please sign in to comment.