[Server] Fix multiple calls of ON_POST_INIT

new-script-api
Koncord 7 years ago
parent b18c6dec9d
commit 1d16958910

@ -59,8 +59,6 @@ Networking::Networking(RakNet::RakPeerInterface *peer) : mclient(nullptr)
serverPassword = TES3MP_DEFAULT_PASSW;
ProcessorInitializer();
luaState.getEventCtrl().Call<CoreEvent::ON_POST_INIT>();
}
Networking::~Networking()

@ -424,6 +424,4 @@ void LuaState::loadMods()
}
dataEnv["Core"]["LOADED_MODS"] = mods.size();
eventCtrl->Call<CoreEvent::ON_POST_INIT>();
}
Loading…
Cancel
Save