From ca589f124472353d3a4cc21b2fceed9808e65c4f Mon Sep 17 00:00:00 2001 From: Syntriax Date: Mon, 21 Nov 2022 21:57:25 +0300 Subject: [PATCH] Factory Update --- Config/MovementDefinitionFactory.cs | 2 +- Config/MovementFactory.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Config/MovementDefinitionFactory.cs b/Config/MovementDefinitionFactory.cs index 9ac619d..1391564 100644 --- a/Config/MovementDefinitionFactory.cs +++ b/Config/MovementDefinitionFactory.cs @@ -21,7 +21,7 @@ namespace Syntriax.Modules.Movement.Config { get { - if (_definitions == null) + if (!IsInitialized) Initialize(); return _definitions; diff --git a/Config/MovementFactory.cs b/Config/MovementFactory.cs index 0faf474..71e5120 100644 --- a/Config/MovementFactory.cs +++ b/Config/MovementFactory.cs @@ -16,7 +16,7 @@ namespace Syntriax.Modules.Movement.Config { get { - if (_types == null) + if (!IsInitialized) Initialize(); return _types;