Merge branch 'component-tweaks' into 20-06-24-submodule

This commit is contained in:
Pieter-Jan Briers
2020-06-24 12:00:58 +02:00
7 changed files with 67 additions and 13 deletions

View File

@@ -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;
}