Fix ItemMapper whitelist mispredict when inserting or removing items

This commit is contained in:
Jabak
2024-06-26 23:03:06 +03:00
parent 8712888e35
commit adc80ea566
2 changed files with 3 additions and 3 deletions

View File

@@ -17,8 +17,8 @@ namespace Content.Shared.Storage.Components
{
public string Layer = string.Empty;
[DataField("whitelist", required: true, serverOnly: true)]
public EntityWhitelist ServerWhitelist { get; set; } = new();
[DataField("whitelist", required: true)]
public EntityWhitelist? ServerWhitelist { get; set; }
/// <summary>
/// Minimal amount of entities that are valid for whitelist.