Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/transmog_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1216,16 +1216,9 @@ class WS_Transmogrification : public WorldScript
{
public:
WS_Transmogrification() : WorldScript("WS_Transmogrification", {
WORLDHOOK_ON_AFTER_CONFIG_LOAD,
WORLDHOOK_ON_STARTUP
}) { }

void OnAfterConfigLoad(bool reload) override
{
if (!reload)
sT->LoadCollections();
}

void OnStartup() override
{
sT->LoadConfig(false);
Expand All @@ -1237,6 +1230,8 @@ class WS_Transmogrification : public WorldScript
// Dont delete even if player has more presets than should
CharacterDatabase.Execute("DELETE FROM `custom_transmogrification_sets` WHERE NOT EXISTS(SELECT 1 FROM characters WHERE characters.guid = custom_transmogrification_sets.Owner)");
#endif

sT->LoadCollections();
}
};

Expand Down