Fix invalid math calculation for getChunkAt.

Fixes issues with many issues with CustomBlocks in general.

Signed-off-by: Mike Howe <dockter@almuramc.com>