Fix autoEnableHook not affecting mod enabling

This commit is contained in:
altalk23 2023-03-02 01:13:32 +03:00
parent e89a792293
commit abad98f951

View file

@ -356,7 +356,9 @@ Result<> Mod::Impl::enable() {
}
for (auto const& hook : m_hooks) {
GEODE_UNWRAP(this->enableHook(hook));
if (hook->getAutoEnable()) {
GEODE_UNWRAP(this->enableHook(hook));
}
}
for (auto const& patch : m_patches) {