summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
authorMoritz Borcherding <moritz.borcherding@web.de>2016-09-18 21:43:30 +0200
committerMattes D <github@xoft.cz>2016-09-27 14:32:20 +0200
commitb268db4caae1b5612ae0f3adabf164efc06de368 (patch)
treea85e615101f7b61f0ebd8c2f73c5068c7b112f88 /src/Entities/Entity.cpp
parentAPIDump: Fixed description for tolua functions. (diff)
downloadcuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.gz
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.bz2
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.lz
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.xz
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.tar.zst
cuberite-b268db4caae1b5612ae0f3adabf164efc06de368.zip
Diffstat (limited to 'src/Entities/Entity.cpp')
-rw-r--r--src/Entities/Entity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index b2fa56143..48d07fbbc 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -1458,7 +1458,7 @@ bool cEntity::DetectPortal()
cWorld * TargetWorld = cRoot::Get()->GetWorld(GetWorld()->GetLinkedOverworldName());
ASSERT(TargetWorld != nullptr); // The linkage checker should have prevented this at startup. See cWorld::start()
LOGD("Jumping %s -> %s", DimensionToString(dimNether).c_str(), DimensionToString(DestionationDim).c_str());
- new cNetherPortalScanner(this, TargetWorld, TargetPos, 256);
+ new cNetherPortalScanner(this, TargetWorld, TargetPos, cChunkDef::Height);
return true;
}
// Nether portal in the overworld
@@ -1490,7 +1490,7 @@ bool cEntity::DetectPortal()
cWorld * TargetWorld = cRoot::Get()->GetWorld(GetWorld()->GetLinkedNetherWorldName());
ASSERT(TargetWorld != nullptr); // The linkage checker should have prevented this at startup. See cWorld::start()
LOGD("Jumping %s -> %s", DimensionToString(dimOverworld).c_str(), DimensionToString(DestionationDim).c_str());
- new cNetherPortalScanner(this, TargetWorld, TargetPos, 128);
+ new cNetherPortalScanner(this, TargetWorld, TargetPos, (cChunkDef::Height / 2));
return true;
}
}