Hotfix revolver serialization (#8561)

* Hotfix revolver serialization

* a
This commit is contained in:
metalgearsloth
2022-06-03 10:38:21 +10:00
committed by GitHub
parent 4954016d4f
commit e74dfd7826
2 changed files with 15 additions and 6 deletions

View File

@@ -30,8 +30,9 @@ public sealed class RevolverAmmoProviderComponent : AmmoProviderComponent
// Like BallisticAmmoProvider we defer spawning until necessary
// AmmoSlots is the instantiated ammo and Chambers is the unspawned ammo (that may or may not have been shot).
// TODO: Using an array would be better but this throws!
[DataField("ammoSlots")]
public EntityUid?[] AmmoSlots = Array.Empty<EntityUid?>();
public List<EntityUid?> AmmoSlots = new();
[DataField("chambers")]
public bool?[] Chambers = Array.Empty<bool?>();