1
0

Prevent arrows from sinking into the ground (#4509)

This commit is contained in:
Mat 2020-03-19 11:58:20 +02:00 committed by GitHub
parent 47fa636e34
commit 599d42e6d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ void cArrowEntity::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
}
}
auto relPos = a_Chunk.RelativeToAbsolute(m_HitBlockPos);
auto relPos = a_Chunk.AbsoluteToRelative(m_HitBlockPos);
auto chunk = a_Chunk.GetRelNeighborChunkAdjustCoords(relPos);
if (chunk == nullptr)