summaryrefslogtreecommitdiffstats
path: root/src/PluginLua.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/PluginLua.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 '')
-rw-r--r--src/PluginLua.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PluginLua.cpp b/src/PluginLua.cpp
index 4ddf191ac..110010087 100644
--- a/src/PluginLua.cpp
+++ b/src/PluginLua.cpp
@@ -1143,13 +1143,13 @@ bool cPluginLua::OnWeatherChanging(cWorld & a_World, eWeather & a_NewWeather)
-bool cPluginLua::OnWorldTick(cWorld & a_World, float a_Dt)
+bool cPluginLua::OnWorldTick(cWorld & a_World, float a_Dt, int a_LastTickDurationMSec)
{
cCSLock Lock(m_CriticalSection);
cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_WORLD_TICK];
for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr)
{
- m_LuaState.Call((int)(**itr), &a_World, a_Dt);
+ m_LuaState.Call((int)(**itr), &a_World, a_Dt, a_LastTickDurationMSec);
}
return false;
}