diff options
Diffstat (limited to 'src/Blocks/BlockPiston.cpp')
-rw-r--r-- | src/Blocks/BlockPiston.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Blocks/BlockPiston.cpp b/src/Blocks/BlockPiston.cpp index afed8bae0..124757b44 100644 --- a/src/Blocks/BlockPiston.cpp +++ b/src/Blocks/BlockPiston.cpp @@ -215,7 +215,7 @@ bool cBlockPistonHandler::CanPushBlock( Vector3iSet & a_BlocksPushed, const Vector3i & a_PushDir ) { - if (!cChunkDef::IsValidHeight(a_BlockPos.y)) + if (!cChunkDef::IsValidHeight(a_BlockPos)) { // Can't push a void block. return false; @@ -299,7 +299,7 @@ void cBlockPistonHandler::OnBroken( const auto Extension = a_BlockPos + MetadataToOffset(a_OldBlockMeta); if ( - cChunkDef::IsValidHeight(Extension.y) && + cChunkDef::IsValidHeight(Extension) && (a_ChunkInterface.GetBlock(Extension) == E_BLOCK_PISTON_EXTENSION) ) { @@ -324,7 +324,7 @@ void cBlockPistonHeadHandler::OnBroken( { UNUSED(a_Digger); const auto Base = a_BlockPos - cBlockPistonHandler::MetadataToOffset(a_OldBlockMeta); - if (!cChunkDef::IsValidHeight(Base.y)) + if (!cChunkDef::IsValidHeight(Base)) { return; } |