Added 'on_enabled` event on the mod start.
Renamed mod:initialized() to mod:init_state().
This commit is contained in:
parent
eb49357241
commit
a245c5d8d9
1 changed files with 3 additions and 2 deletions
|
@ -52,11 +52,12 @@ VMFMod.enable = function (self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
VMFMod.initialized = function (self)
|
VMFMod.init_state = function (self)
|
||||||
|
|
||||||
if _DISABLED_MODS_LIST[self:get_name()] then
|
if _DISABLED_MODS_LIST[self:get_name()] then
|
||||||
|
|
||||||
change_mod_state(self, false, true)
|
change_mod_state(self, false, true)
|
||||||
|
else
|
||||||
|
change_mod_state(self, true, true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue