From dedb414a50328bf00462409d14d8917ff24844be Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 5 Feb 2013 19:57:22 +0000 Subject: Added new hooks: OnChunkAvailable(), OnChunkUnloaded() and OnChunkUnloading(). Modified OnChunkGenerated() signature. http://forum.mc-server.org/showthread.php?tid=464&pid=6312#pid6312 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1193 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Root.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/Root.cpp') diff --git a/source/Root.cpp b/source/Root.cpp index 1ec7f0e59..72003ca72 100644 --- a/source/Root.cpp +++ b/source/Root.cpp @@ -189,8 +189,6 @@ void cRoot::Start(void) StopWorlds(); LOG("Stopping authenticator..."); m_Authenticator.Stop(); - LOG("Stopping plugin manager..."); - delete m_PluginManager; m_PluginManager = 0; // This should be first #ifdef USE_SQUIRREL @@ -208,6 +206,9 @@ void cRoot::Start(void) LOG("Unloading worlds..."); UnloadWorlds(); + LOG("Stopping plugin manager..."); + delete m_PluginManager; m_PluginManager = NULL; + cItemHandler::Deinit(); cBlockHandler::Deinit(); -- cgit v1.2.3