fix: Ensure ShouldSerializeCrafter serializes when _crafter is not null or empty (#2062)

This commit is contained in:
Nathan Oines 2025-01-13 15:22:56 -06:00 committed by GitHub
parent 25431aa7f5
commit 863b4b5460
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -101,7 +101,7 @@ namespace Server.Items
private string _crafter;
[SerializableFieldSaveFlag(10)]
private bool ShouldSerializeCrafter() => _crafter != null;
private bool ShouldSerializeCrafter() => !string.IsNullOrEmpty(_crafter);
[SerializableFieldSaveFlag(14)]
private bool ShouldSerializeResource() => _resource != DefaultResource;