summaryrefslogtreecommitdiffstats
path: root/src/Simulator
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-28 22:22:44 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-28 22:22:44 +0200
commit72ae5ecb5a5a8585935be6a954f480a406550b5c (patch)
treeef4acd137953ca2ddf56ffd834196403c841783e /src/Simulator
parentRemove unneeded MarkDirty, SendToClients parameters of SetMeta (diff)
downloadcuberite-72ae5ecb5a5a8585935be6a954f480a406550b5c.tar
cuberite-72ae5ecb5a5a8585935be6a954f480a406550b5c.tar.gz
cuberite-72ae5ecb5a5a8585935be6a954f480a406550b5c.tar.bz2
cuberite-72ae5ecb5a5a8585935be6a954f480a406550b5c.tar.lz
cuberite-72ae5ecb5a5a8585935be6a954f480a406550b5c.tar.xz
cuberite-72ae5ecb5a5a8585935be6a954f480a406550b5c.tar.zst
cuberite-72ae5ecb5a5a8585935be6a954f480a406550b5c.zip
Diffstat (limited to 'src/Simulator')
-rw-r--r--src/Simulator/Simulator.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/Simulator/Simulator.cpp b/src/Simulator/Simulator.cpp
index 6b39b81d5..36b03520c 100644
--- a/src/Simulator/Simulator.cpp
+++ b/src/Simulator/Simulator.cpp
@@ -132,13 +132,6 @@ void cSimulator::WakeUp(const cCuboid & a_Area)
{
m_World.DoWithChunk(cx, cz, [this, &area](cChunk & a_CBChunk) -> bool
{
- if (!a_CBChunk.IsValid())
- {
- LOGWARNING("%s: Trying to wake up inside a non-valid chunk [%d, %d]. Ignoring.",
- __FUNCTION__, a_CBChunk.GetPosX(), a_CBChunk.GetPosZ()
- );
- return true;
- }
int startX = std::max(area.p1.x, a_CBChunk.GetPosX() * cChunkDef::Width);
int startZ = std::max(area.p1.z, a_CBChunk.GetPosZ() * cChunkDef::Width);
int endX = std::min(area.p2.x, a_CBChunk.GetPosX() * cChunkDef::Width + cChunkDef::Width - 1);