Add some tests and fix some miscellaneous bugs (#22836)
* Add some tests and fix some bugs * Add more helper methods * remove submodule * fix merge * also fix DirtyAll() * poke
This commit is contained in:
@@ -38,9 +38,9 @@ public sealed class DirtyCommand : IConsoleCommand
|
||||
|
||||
private static void DirtyAll(IEntityManager manager, EntityUid entityUid)
|
||||
{
|
||||
foreach (var component in manager.GetComponents(entityUid))
|
||||
foreach (var component in manager.GetNetComponents(entityUid))
|
||||
{
|
||||
manager.Dirty((Component)component);
|
||||
manager.Dirty(entityUid, component.component);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user