Fixes ArrayIndexOutofBounds if somehow a ore block returns 3

The length of the array is 3, but our last index is 2.  If someone
passes a meta of 3 they will crash, this is possible with a few mods
that change block meta on already placed blocks.