Merge pull request #2641 from cuberite/worktycho-patch-1
Blocks outside the world are never solid
This commit is contained in:
commit
62b1d0b772
@ -126,6 +126,10 @@ bool cPath::IsSolid(const Vector3i & a_Location)
|
||||
{
|
||||
ASSERT(m_Chunk != nullptr);
|
||||
|
||||
if (!cChunkDef::IsValidHeight(a_Location.y))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
auto Chunk = m_Chunk->GetNeighborChunk(a_Location.x, a_Location.z);
|
||||
if ((Chunk == nullptr) || !Chunk->IsValid())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user