From 3bdef5bc72d063a7c9a37a4e0bf5f2afd1a256d7 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Mon, 2 Feb 2026 14:58:20 +0200 Subject: [PATCH] Instantiate our ContentHandler directly --- HookahPlace/src/HookahPlace.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/HookahPlace/src/HookahPlace.cs b/HookahPlace/src/HookahPlace.cs index 4fac385..bd57154 100644 --- a/HookahPlace/src/HookahPlace.cs +++ b/HookahPlace/src/HookahPlace.cs @@ -7,6 +7,7 @@ using Dawn.Utils; using HarmonyLib; using Dusk; using BepInEx.Configuration; +using HookahPlace.Content; namespace HookahPlace; @@ -38,7 +39,9 @@ public class HookahPlace : BaseUnityPlugin AssetBundle mainBundle = AssetBundleUtils.LoadBundle(Assembly.GetExecutingAssembly(), "hookahplaceasset"); Mod = DuskMod.RegisterMod(this, mainBundle); - Mod.RegisterContentHandlers(); + + // Effectively the same as `Mod.RegisterContentHandlers();` but simpler and faster + _ = new HookahContentHandler(Mod); Logger.LogInfo($"{MyPluginInfo.PLUGIN_GUID} v{MyPluginInfo.PLUGIN_VERSION} has loaded!"); }