Compatibility with https://github.com/TrinityCore/TrinityCore/commit/a2b860b7814ca216565a432e07579dd77f004a86