More chunk coordinate miscalculations, caused by casting double to int instead of rounding down