1
0

Fixed some block checks

* Fixes #1330
This commit is contained in:
Tiger Wang 2014-10-25 00:22:31 +01:00
parent 190d34e2f7
commit 6fbc98def2
2 changed files with 3 additions and 4 deletions

View File

@ -28,8 +28,7 @@ public:
return false; return false;
} }
BLOCKTYPE BlockBelow = a_Chunk.GetBlock(a_RelX, a_RelY - 1, a_RelZ); return (cBlockInfo::FullyOccupiesVoxel(a_Chunk.GetBlock(a_RelX, a_RelY - 1, a_RelZ)));
return (cBlockInfo::IsSolid(BlockBelow));
} }
} ; } ;

View File

@ -98,7 +98,7 @@ public:
{ {
return false; return false;
} }
if (!cBlockInfo::IsSolid(a_Chunk.GetBlock(a_RelX, a_RelY - 1, a_RelZ))) if (!cBlockInfo::FullyOccupiesVoxel(a_Chunk.GetBlock(a_RelX, a_RelY - 1, a_RelZ)))
{ {
return false; return false;
} }
@ -130,7 +130,7 @@ public:
// Too close to the edge, cannot simulate // Too close to the edge, cannot simulate
return true; return true;
} }
return cBlockInfo::IsSolid(BlockType); return cBlockInfo::FullyOccupiesVoxel(BlockType);
} }
} }
return true; return true;