diff options
author | Mattes D <github@xoft.cz> | 2015-04-25 14:28:42 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-04-25 18:11:14 +0200 |
commit | b7d1d701b9e5ecee0f18a1ac6959a7638f6cb555 (patch) | |
tree | 3f2a18aa57f855f0ae726405053b228cb5b198e4 /src/Bindings | |
parent | Merge pull request #1894 from mc-server/RefactorManualBindingsTemplates (diff) | |
download | cuberite-b7d1d701b9e5ecee0f18a1ac6959a7638f6cb555.tar cuberite-b7d1d701b9e5ecee0f18a1ac6959a7638f6cb555.tar.gz cuberite-b7d1d701b9e5ecee0f18a1ac6959a7638f6cb555.tar.bz2 cuberite-b7d1d701b9e5ecee0f18a1ac6959a7638f6cb555.tar.lz cuberite-b7d1d701b9e5ecee0f18a1ac6959a7638f6cb555.tar.xz cuberite-b7d1d701b9e5ecee0f18a1ac6959a7638f6cb555.tar.zst cuberite-b7d1d701b9e5ecee0f18a1ac6959a7638f6cb555.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/PluginLua.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp index ddd3398a5..4c98b8d26 100644 --- a/src/Bindings/PluginLua.cpp +++ b/src/Bindings/PluginLua.cpp @@ -63,6 +63,11 @@ void cPluginLua::Close(void) return; } + // Remove the command bindings and web tabs: + ClearCommands(); + ClearConsoleCommands(); + ClearTabs(); + // Notify and remove all m_Resettables (unlock the m_CriticalSection while resetting them): cResettablePtrs resettables; std::swap(m_Resettables, resettables); |