From df29fca0c2dfd3587e7c340d833f20a2af092aa7 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Sat, 4 Feb 2023 09:33:07 -0800 Subject: [PATCH] fix: Fixes plant issue with old client (#1330) --- Projects/UOContent/Engines/Plants/PlantItem.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Projects/UOContent/Engines/Plants/PlantItem.cs b/Projects/UOContent/Engines/Plants/PlantItem.cs index 5f1b8e614..9ea7af85c 100644 --- a/Projects/UOContent/Engines/Plants/PlantItem.cs +++ b/Projects/UOContent/Engines/Plants/PlantItem.cs @@ -56,8 +56,14 @@ namespace Server.Engines.Plants public PlantSystem PlantSystem { get; private set; } - public ObjectPropertyList OldClientPropertyList => - _oldClientPropertyList ??= InitializePropertyList(new ObjectPropertyList(this)); + public ObjectPropertyList OldClientPropertyList + { + get + { + InitializePropertyList(_oldClientPropertyList ??= new ObjectPropertyList(this)); + return _oldClientPropertyList; + } + } public override bool ForceShowProperties => ObjectPropertyList.Enabled; @@ -239,12 +245,11 @@ namespace Server.Engines.Plants InvalidateProperties(); } - private ObjectPropertyList InitializePropertyList(ObjectPropertyList list) + private void InitializePropertyList(ObjectPropertyList list) { GetProperties(list); AppendChildProperties(list); list.Terminate(); - return list; } // Overridden to support new and old client localization