summaryrefslogtreecommitdiffstats
path: root/src/Chunk.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/Chunk.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/Chunk.cpp')
-rw-r--r--src/Chunk.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 4bf4557d9..c9bd1dbcf 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -684,21 +684,6 @@ void cChunk::SpawnMobs(cMobSpawner & a_MobSpawner)
void cChunk::Tick(std::chrono::milliseconds a_Dt)
{
- const auto ShouldTick = ShouldBeTicked();
-
- // If we are not valid, tick players and bailout
- if (!ShouldTick)
- {
- for (const auto & Entity : m_Entities)
- {
- if (Entity->IsPlayer())
- {
- Entity->Tick(a_Dt, *this);
- }
- }
- return;
- }
-
TickBlocks();
// Tick all block entities in this chunk: