diff options
author | madmaxoft <github@xoft.cz> | 2014-03-16 22:00:28 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-03-16 22:00:28 +0100 |
commit | 89027cb67510f49114b9cd99c585009465a3ef66 (patch) | |
tree | 84c0b58b200e76785005b9e892ee4b2b9f63097a /src/BlockEntities/HopperEntity.cpp | |
parent | Added override specifier where appropriate in cWorld. (diff) | |
download | cuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar cuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar.gz cuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar.bz2 cuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar.lz cuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar.xz cuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar.zst cuberite-89027cb67510f49114b9cd99c585009465a3ef66.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockEntities/HopperEntity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockEntities/HopperEntity.cpp b/src/BlockEntities/HopperEntity.cpp index af7043767..41fb9f811 100644 --- a/src/BlockEntities/HopperEntity.cpp +++ b/src/BlockEntities/HopperEntity.cpp @@ -219,7 +219,7 @@ bool cHopperEntity::MovePickupsIn(cChunk & a_Chunk, Int64 a_CurrentTick) Vector3f EntityPos = a_Entity->GetPosition(); Vector3f BlockPos(m_Pos.x + 0.5f, (float)m_Pos.y + 1, m_Pos.z + 0.5f); // One block above hopper, and search from center outwards - float Distance = (EntityPos - BlockPos).Length(); + double Distance = (EntityPos - BlockPos).Length(); if (Distance < 0.5) { |