- Updated UFA:Plugin (mattn2)
[xonotic/netradiant.git] / plugins / model / plugin.cpp
index 278388fd57278e2009bf45a634819e7c35b8970d..e032e3981a4378727317e0dad037f87077226c2b 100644 (file)
@@ -169,10 +169,7 @@ PicoModelModules g_PicoModelModules;
 
 extern "C" void RADIANT_DLLEXPORT Radiant_RegisterModules(ModuleServer& server)
 {
-  GlobalErrorStream::instance().setOutputStream(server.getErrorStream());
-  GlobalOutputStream::instance().setOutputStream(server.getOutputStream());
-  GlobalDebugMessageHandler::instance().setHandler(server.getDebugMessageHandler());
-  GlobalModuleServer::instance().set(server);
+  initialiseModule(server);
 
   pico_initialise();