From 007fd29bc3949e9b3feafcaff483eaa17c147275 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Mon, 6 Mar 2023 02:59:22 +0700 Subject: [PATCH] Change `Global` to create `JSONAPI` earlier in the API chain --- sources/BaseRealm/Global.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/BaseRealm/Global.uc b/sources/BaseRealm/Global.uc index f26f92f..cc261a0 100644 --- a/sources/BaseRealm/Global.uc +++ b/sources/BaseRealm/Global.uc @@ -68,6 +68,7 @@ protected function Initialize() text = TextAPI(memory.Allocate(class'TextAPI')); math = MathAPI(memory.Allocate(class'MathAPI')); collections = CollectionsAPI(memory.Allocate(class'CollectionsAPI')); + json = JSONAPI(memory.Allocate(class'JSONAPI')); logger = LoggerAPI(memory.Allocate(class'LoggerAPI')); color = ColorAPI(memory.Allocate(class'ColorAPI')); alias = AliasesAPI(memory.Allocate(class'AliasesAPI')); @@ -75,7 +76,6 @@ protected function Initialize() chat = ChatAPI(memory.Allocate(class'ChatAPI')); users = UserAPI(memory.Allocate(class'UserAPI')); players = PlayersAPI(memory.Allocate(class'PlayersAPI')); - json = JSONAPI(memory.Allocate(class'JSONAPI')); db = DBAPI(memory.Allocate(class'DBAPI')); scheduler = SchedulerAPI(memory.Allocate(class'SchedulerAPI')); avarice = AvariceAPI(memory.Allocate(class'AvariceAPI'));