summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2022-11-03 01:52:37 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2022-11-03 01:52:37 +0100
commit5907df680861e19091018c33979ebabe53d7ed72 (patch)
treee2e7414844d31072477c51b801b820bab441d196 /src/World.cpp
parentUpdate Core Plugin (#5453) (diff)
downloadcuberite-5907df680861e19091018c33979ebabe53d7ed72.tar
cuberite-5907df680861e19091018c33979ebabe53d7ed72.tar.gz
cuberite-5907df680861e19091018c33979ebabe53d7ed72.tar.bz2
cuberite-5907df680861e19091018c33979ebabe53d7ed72.tar.lz
cuberite-5907df680861e19091018c33979ebabe53d7ed72.tar.xz
cuberite-5907df680861e19091018c33979ebabe53d7ed72.tar.zst
cuberite-5907df680861e19091018c33979ebabe53d7ed72.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 57ba656e8..1af7650e6 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -1033,6 +1033,7 @@ void cWorld::Tick(std::chrono::milliseconds a_Dt, std::chrono::milliseconds a_La
Player->GetClientHandle()->ProcessProtocolIn();
}
+ TickClients(a_Dt);
TickQueuedChunkDataSets();
TickQueuedBlocks();
m_ChunkMap.Tick(a_Dt);
@@ -1072,6 +1073,18 @@ void cWorld::Tick(std::chrono::milliseconds a_Dt, std::chrono::milliseconds a_La
+void cWorld::TickClients(const std::chrono::milliseconds a_Dt)
+{
+ for (const auto Player : m_Players)
+ {
+ Player->GetClientHandle()->Tick(a_Dt);
+ }
+}
+
+
+
+
+
void cWorld::TickWeather(float a_Dt)
{
UNUSED(a_Dt);