Fix off-by-one error causing anti-mining protection ineffective
Merge pull request #6 from lnovy/master

Fix off-by-one issue