From e04cf85825c24d16b53ecf32ff49fcb548efb5f5 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Wed, 31 Aug 2022 23:13:36 -0700 Subject: [PATCH] increase the delay, but only do it when nh is installed --- QSB/WorldSync/QSBWorldSync.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/QSB/WorldSync/QSBWorldSync.cs b/QSB/WorldSync/QSBWorldSync.cs index 95142319..39a9aab6 100644 --- a/QSB/WorldSync/QSBWorldSync.cs +++ b/QSB/WorldSync/QSBWorldSync.cs @@ -50,8 +50,11 @@ public static class QSBWorldSync } // let NH do things first :) - // yes it has to be this long for it to always work. dw things still work no matter the delay - await UniTask.DelayFrame(20, cancellationToken: _cts.Token); + // yes it has to be this long for things to be the most stable with addons + if (QSBCore.Helper.Interaction.ModExists("xen.NewHorizons")) + { + await UniTask.DelayFrame(100, cancellationToken: _cts.Token); + } GameInit();