mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Remove some unnecessary EntityQuery<T> and warns (#4167)
This commit is contained in:
@@ -26,6 +26,7 @@ using Robust.Shared.Physics.Systems;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Reflection;
|
||||
using Robust.Shared.Utility;
|
||||
using EyeComponent = Robust.Server.GameObjects.EyeComponent;
|
||||
|
||||
namespace Robust.UnitTesting
|
||||
{
|
||||
@@ -127,6 +128,11 @@ namespace Robust.UnitTesting
|
||||
// Why are we still here? Just to suffer? Why can't we just use [RegisterComponent] magic?
|
||||
var compFactory = deps.Resolve<IComponentFactory>();
|
||||
|
||||
if (!compFactory.AllRegisteredTypes.Contains(typeof(EyeComponent)))
|
||||
{
|
||||
compFactory.RegisterClass<EyeComponent>();
|
||||
}
|
||||
|
||||
if (!compFactory.AllRegisteredTypes.Contains(typeof(MapComponent)))
|
||||
{
|
||||
compFactory.RegisterClass<MapComponent>();
|
||||
|
||||
Reference in New Issue
Block a user