1
0

Suggestions

This commit is contained in:
Tiger Wang 2014-05-29 16:03:41 +01:00
parent 3549d0d5e6
commit aa4477822a

View File

@ -143,7 +143,12 @@ private:
}
}
return CanBreakPush(a_BlockType) ? false /* CanBreakPush returns true, but we need false to prevent pulling */ : CanPush(a_BlockType, a_BlockMeta);
if (CanBreakPush(a_BlockType))
{
return false; // CanBreakPush returns true, but we need false to prevent pulling
}
return CanPush(a_BlockType, a_BlockMeta);
}
/// Returns how many blocks the piston has to push (where the first free space is); < 0 when unpushable