Made the block get updated on inventory change.
Merge pull request #1 from fuj1n/patch-2

Merge patch-1 with patch-2