fix benchmark
improve some test diagnostics fix some bug where order of shutdown of AiControllerComponent mattered or Processor was never initialized
This commit is contained in:
@@ -60,7 +60,7 @@ namespace Content.Server.GameObjects
|
||||
base.ExposeData(serializer);
|
||||
|
||||
serializer.DataField(ref StorageCapacityMax, "Capacity", 10000);
|
||||
serializer.DataField(ref StorageUsed, "used", 0);
|
||||
//serializer.DataField(ref StorageUsed, "used", 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -348,7 +348,7 @@ namespace Content.Server.GameObjects
|
||||
|
||||
foreach (var entity in storage.ContainedEntities)
|
||||
{
|
||||
var item = entity.GetComponent<ItemComponent>();
|
||||
var item = entity.GetComponent<StoreableComponent>();
|
||||
StorageUsed += item.ObjectSize;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace Content.Server.GameObjects.Components.Movement
|
||||
protected override void Shutdown()
|
||||
{
|
||||
base.Shutdown();
|
||||
Processor.Shutdown();
|
||||
Processor?.Shutdown();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user