summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-24 21:42:11 +0200
committermadmaxoft <github@xoft.cz>2013-08-24 21:42:11 +0200
commit46a8b77151e7cce23d5294c1c48e93a05821db34 (patch)
treebe5fdc87b6f469ac422ed468abd9352251e2ce83
parentFixed pickup behavior outside the world. (diff)
downloadcuberite-46a8b77151e7cce23d5294c1c48e93a05821db34.tar
cuberite-46a8b77151e7cce23d5294c1c48e93a05821db34.tar.gz
cuberite-46a8b77151e7cce23d5294c1c48e93a05821db34.tar.bz2
cuberite-46a8b77151e7cce23d5294c1c48e93a05821db34.tar.lz
cuberite-46a8b77151e7cce23d5294c1c48e93a05821db34.tar.xz
cuberite-46a8b77151e7cce23d5294c1c48e93a05821db34.tar.zst
cuberite-46a8b77151e7cce23d5294c1c48e93a05821db34.zip
Diffstat (limited to '')
-rw-r--r--source/Tracer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Tracer.cpp b/source/Tracer.cpp
index 6d37f2ed8..0f756756a 100644
--- a/source/Tracer.cpp
+++ b/source/Tracer.cpp
@@ -133,9 +133,9 @@ void cTracer::SetValues(const Vector3f & a_Start, const Vector3f & a_Direction)
int cTracer::Trace( const Vector3f & a_Start, const Vector3f & a_Direction, int a_Distance)
{
- if (a_Start.y < 0)
+ if ((a_Start.y < 0) || (a_Start.y >= cChunkDef::Height))
{
- LOGD("%s: Start is below the world", __FUNCTION__);
+ LOGD("%s: Start Y is outside the world (%d), not tracing.", __FUNCTION__, a_Start.y);
return 0;
}