diff --git a/src/mod_reforging_worldscript.cpp b/src/mod_reforging_worldscript.cpp index ab52f6e..4151f42 100644 --- a/src/mod_reforging_worldscript.cpp +++ b/src/mod_reforging_worldscript.cpp @@ -17,14 +17,15 @@ public: void OnAfterConfigLoad(bool reload) override { - if (reload) + bool reforgeEnableChanged = reload && sItemReforge->GetEnabled() != sConfigMgr->GetOption("Reforging.Enable", true); + if (reforgeEnableChanged) sItemReforge->HandleReload(false); sItemReforge->SetEnabled(sConfigMgr->GetOption("Reforging.Enable", true)); sItemReforge->SetReforgeableStats(sConfigMgr->GetOption("Reforging.ReforgeableStats", ItemReforge::DefaultReforgeableStats)); sItemReforge->SetPercentage(sConfigMgr->GetOption("Reforging.Percentage", ItemReforge::PERCENTAGE_DEFAULT)); - if (reload) + if (reforgeEnableChanged) sItemReforge->HandleReload(true); }