Backported memory leak fixes from 1.5.x branch
Removed FlatMap<V> was using a LOT of memory for marginal gains in 512x512 area around spawn. With multiple worlds, it adds up quickly...
Merge pull request #993 from OniBait/MC147-RCFix

Backported 1.5.x memory leak fixes and removed FlatMap<V> usage