Optimized mob tree search by getting the index from the position, instead of iterating through every tile of every branch.