Instantiate our ContentHandler directly
This commit is contained in:
parent
62a11f76d2
commit
3bdef5bc72
|
|
@ -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!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue