diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2022-11-03 01:52:37 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2022-11-03 01:52:37 +0100 |
commit | 5907df680861e19091018c33979ebabe53d7ed72 (patch) | |
tree | e2e7414844d31072477c51b801b820bab441d196 /src/Entities | |
parent | Update Core Plugin (#5453) (diff) | |
download | cuberite-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/Entities')
-rw-r--r-- | src/Entities/Player.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 04a7f9be0..9f4fcb971 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -3156,8 +3156,6 @@ void cPlayer::SpawnOn(cClientHandle & a_Client) void cPlayer::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) { - m_ClientHandle->Tick(a_Dt); - if (m_ClientHandle->IsDestroyed()) { Destroy(); @@ -3182,13 +3180,6 @@ void cPlayer::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) } } - if (!a_Chunk.IsValid()) - { - // Players are ticked even if the parent chunk is invalid. - // We've processed as much as we can, bail: - return; - } - ASSERT((GetParentChunk() != nullptr) && (GetParentChunk()->IsValid())); ASSERT(a_Chunk.IsValid()); |