summaryrefslogtreecommitdiffstats
path: root/source/PluginManager.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-22 21:03:20 +0200
committermadmaxoft <github@xoft.cz>2013-08-22 21:03:20 +0200
commit7eae58281a1c912f298ac8d5f463a2c60cdc2440 (patch)
treec538ef9a99740a4d03777e633a811ad77207464b /source/PluginManager.cpp
parentRemoved unwanted VirtualHooks remnants. (diff)
downloadcuberite-7eae58281a1c912f298ac8d5f463a2c60cdc2440.tar
cuberite-7eae58281a1c912f298ac8d5f463a2c60cdc2440.tar.gz
cuberite-7eae58281a1c912f298ac8d5f463a2c60cdc2440.tar.bz2
cuberite-7eae58281a1c912f298ac8d5f463a2c60cdc2440.tar.lz
cuberite-7eae58281a1c912f298ac8d5f463a2c60cdc2440.tar.xz
cuberite-7eae58281a1c912f298ac8d5f463a2c60cdc2440.tar.zst
cuberite-7eae58281a1c912f298ac8d5f463a2c60cdc2440.zip
Diffstat (limited to 'source/PluginManager.cpp')
-rw-r--r--source/PluginManager.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp
index a2726bd58..93ee71926 100644
--- a/source/PluginManager.cpp
+++ b/source/PluginManager.cpp
@@ -1619,10 +1619,6 @@ void cPluginManager::AddHook(cPlugin * a_Plugin, int a_Hook)
LOGWARN("Called cPluginManager::AddHook() with a_Plugin == NULL");
return;
}
- if (!a_Plugin->CanAddHook(a_Hook))
- {
- return;
- }
PluginList & Plugins = m_Hooks[a_Hook];
Plugins.remove(a_Plugin);
Plugins.push_back(a_Plugin);