fix: Ensure ShouldSerializeCrafter serializes when _crafter is not null or empty (#2062)
This commit is contained in:
parent
25431aa7f5
commit
863b4b5460
4 changed files with 4 additions and 4 deletions
|
|
@ -104,7 +104,7 @@ public abstract partial class BaseWeapon : Item, IWeapon, IFactionItem, ICraftab
|
|||
|
||||
[SerializableFieldSaveFlag(9)]
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private bool ShouldSerializeCrafter() => string.IsNullOrEmpty(_crafter);
|
||||
private bool ShouldSerializeCrafter() => !string.IsNullOrEmpty(_crafter);
|
||||
|
||||
[InvalidateProperties]
|
||||
[SerializableField(10)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue