From 7635db4834fdb7a23c950f0f4fd270f935dadf5a Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Sun, 12 Mar 2023 10:21:04 -0700 Subject: [PATCH] fix: Fixes double call to AfterDeserialization (#1372) --- Projects/UOContent/Accounting/Account.Migrations.cs | 2 -- Projects/UOContent/Accounting/Account.cs | 2 +- Projects/UOContent/Engines/Bulk Orders/BaseBOD.cs | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Projects/UOContent/Accounting/Account.Migrations.cs b/Projects/UOContent/Accounting/Account.Migrations.cs index b1c487a5c..0bee60baf 100644 --- a/Projects/UOContent/Accounting/Account.Migrations.cs +++ b/Projects/UOContent/Accounting/Account.Migrations.cs @@ -97,8 +97,6 @@ namespace Server.Accounting { _email = reader.ReadString(); } - - Timer.StartTimer(AfterDeserialization); } } } diff --git a/Projects/UOContent/Accounting/Account.cs b/Projects/UOContent/Accounting/Account.cs index 9eaae787c..b0fdfe9ee 100644 --- a/Projects/UOContent/Accounting/Account.cs +++ b/Projects/UOContent/Accounting/Account.cs @@ -295,7 +295,7 @@ namespace Server.Accounting public Serial Serial { get; set; } - [AfterDeserialization] + [AfterDeserialization(false)] private void AfterDeserialization() { if (_comments?.Count == 0) diff --git a/Projects/UOContent/Engines/Bulk Orders/BaseBOD.cs b/Projects/UOContent/Engines/Bulk Orders/BaseBOD.cs index cf34d9060..20aa0a3ec 100644 --- a/Projects/UOContent/Engines/Bulk Orders/BaseBOD.cs +++ b/Projects/UOContent/Engines/Bulk Orders/BaseBOD.cs @@ -128,8 +128,6 @@ namespace Server.Engines.BulkOrders AmountMax = reader.ReadInt(); RequireExceptional = reader.ReadBool(); Material = (BulkMaterialType)reader.ReadInt(); - - Timer.StartTimer(AfterDeserialization); } } }