rd/tgrains
Merge pull request #1207 from rd--/rd/tgrains

plugins: make TGrains work with LocalBuf, thanks @rd--