1
0

Minor change to buttons and levers

+ They now detect if the block they are on occupies its voxel, instead
of just being solid
This commit is contained in:
Tiger Wang
2014-06-28 00:29:19 +01:00
parent 69befa9851
commit 0a20e19a64
2 changed files with 3 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ public:
AddFaceDirection(a_RelX, a_RelY, a_RelZ, BlockMetaDataToBlockFace(Meta), true);
BLOCKTYPE BlockIsOn; a_Chunk.UnboundedRelGetBlockType(a_RelX, a_RelY, a_RelZ, BlockIsOn);
return (a_RelY > 0) && (cBlockInfo::IsSolid(BlockIsOn));
return (a_RelY > 0) && (cBlockInfo::FullyOccupiesVoxel(BlockIsOn));
}
} ;