Fix java.lang.ArrayIndexOutOfBoundsException: -1 updating block neighbours

Signed-off-by: Ross Allan <rallanpcl@gmail.com>