summaryrefslogtreecommitdiffstats
path: root/src/PluginManager.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-30 14:22:26 +0100
committermadmaxoft <github@xoft.cz>2013-11-30 14:22:26 +0100
commit2383016b1d673fcf0ad69a08bba62d7ce36cdd76 (patch)
tree97bc44cd3d747b3cbe5a2794419c17eb7c177ba0 /src/PluginManager.cpp
parentGrass doesn't spread to podzol or grassless dirt blocks. (diff)
downloadcuberite-2383016b1d673fcf0ad69a08bba62d7ce36cdd76.tar
cuberite-2383016b1d673fcf0ad69a08bba62d7ce36cdd76.tar.gz
cuberite-2383016b1d673fcf0ad69a08bba62d7ce36cdd76.tar.bz2
cuberite-2383016b1d673fcf0ad69a08bba62d7ce36cdd76.tar.lz
cuberite-2383016b1d673fcf0ad69a08bba62d7ce36cdd76.tar.xz
cuberite-2383016b1d673fcf0ad69a08bba62d7ce36cdd76.tar.zst
cuberite-2383016b1d673fcf0ad69a08bba62d7ce36cdd76.zip
Diffstat (limited to 'src/PluginManager.cpp')
-rw-r--r--src/PluginManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PluginManager.cpp b/src/PluginManager.cpp
index bb6f2a24b..b57a9d7d8 100644
--- a/src/PluginManager.cpp
+++ b/src/PluginManager.cpp
@@ -1210,7 +1210,7 @@ bool cPluginManager::CallHookWeatherChanging(cWorld & a_World, eWeather & a_NewW
-bool cPluginManager::CallHookWorldTick(cWorld & a_World, float a_Dt)
+bool cPluginManager::CallHookWorldTick(cWorld & a_World, float a_Dt, int a_LastTickDurationMSec)
{
HookMap::iterator Plugins = m_Hooks.find(HOOK_WORLD_TICK);
if (Plugins == m_Hooks.end())
@@ -1219,7 +1219,7 @@ bool cPluginManager::CallHookWorldTick(cWorld & a_World, float a_Dt)
}
for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
{
- if ((*itr)->OnWorldTick(a_World, a_Dt))
+ if ((*itr)->OnWorldTick(a_World, a_Dt, a_LastTickDurationMSec))
{
return true;
}