Closed garrotte13 closed 1 year ago
function mapUtils.getChunkByPosition(map: any, position: any)
can return -1 if not found, but in next lines it is expected to be an array:
if not settler and (chunk[BASE_PHEROMONE] < 0.0001) and (chunk[PLAYER_PHEROMONE] < 0.0001) then
Looks like factorio may position a new biters squad in not generated chunk (or just created and not processed by Rampant yet).