diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 0f2bf130da..0fcbeb04a1 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -180,9 +180,13 @@ namespace CalamityMod // { "Xeroc", 26f }, }; - public override void PostSetupContent() + public override void Load() { LavaStyleToBiomeLava(); + } + + public override void PostSetupContent() + { BossChecklistSupport(); FargosSupport(); DialogueTweakSupport(); @@ -214,7 +218,7 @@ namespace CalamityMod Func ModifyLightFunc = ModifyLight; Func IsLavaActive = lavaStyle.IsLavaActive; Func lavafallGlowmask = lavaStyle.LavafallGlowmask; - Func InflictDebuffFunc = InflictDebuff; + Action InflictDebuffFunc = InflictDebuff; Func yes = InflictsOnFire; Vector3 ModifyLight(int x, int y, float r, float g, float b) @@ -223,13 +227,12 @@ namespace CalamityMod return new Vector3(r, g, b); } - Action InflictDebuff(Player player, NPC npc, int onfireDuration) + void InflictDebuff(Player player, NPC npc, int onfireDuration) { if (player != null && npc == null) { lavaStyle.InflictDebuff(player, onfireDuration); } - return null; } bool InflictsOnFire()