summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-19 09:28:22 +0200
committermadmaxoft <github@xoft.cz>2013-08-19 09:28:22 +0200
commitdd030fa8920d8cf9c863d2ffdcd791edc1749172 (patch)
tree33daa2cddc50cf496b6714a48d781ff9403a68b6 /source/World.cpp
parentcChunk::SetBlock() now uses cChunk::FastSetBlock() for the common code path. (diff)
downloadcuberite-dd030fa8920d8cf9c863d2ffdcd791edc1749172.tar
cuberite-dd030fa8920d8cf9c863d2ffdcd791edc1749172.tar.gz
cuberite-dd030fa8920d8cf9c863d2ffdcd791edc1749172.tar.bz2
cuberite-dd030fa8920d8cf9c863d2ffdcd791edc1749172.tar.lz
cuberite-dd030fa8920d8cf9c863d2ffdcd791edc1749172.tar.xz
cuberite-dd030fa8920d8cf9c863d2ffdcd791edc1749172.tar.zst
cuberite-dd030fa8920d8cf9c863d2ffdcd791edc1749172.zip
Diffstat (limited to 'source/World.cpp')
-rw-r--r--source/World.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 70dbb5284..2485a1154 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -576,6 +576,9 @@ void cWorld::Stop(void)
void cWorld::Tick(float a_Dt)
{
+ // Call the plugins
+ cPluginManager::Get()->CallHookWorldTick(*this, a_Dt);
+
// We need sub-tick precision here, that's why we store the time in seconds and calculate ticks off of it
m_WorldAgeSecs += (double)a_Dt / 1000.0;
m_TimeOfDaySecs += (double)a_Dt / 1000.0;