Fixed pistons pulling un-pullables

master
Tiger Wang 2013-09-15 16:40:09 +01:00
parent 30b8300ad3
commit 91a13c8e87
1 changed files with 7 additions and 1 deletions

View File

@ -270,7 +270,13 @@ bool cPiston::CanPull(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
return false;
}
}
return CanPush(a_BlockType, a_BlockMeta) || CanBreakPush(a_BlockType, a_BlockMeta);
if (CanBreakPush(a_BlockType, a_BlockMeta))
{
return false; // CanBreakPush returns true, but we need false to prevent pulling
}
return CanPush(a_BlockType, a_BlockMeta);
}