The code doesnt really show much.
But try starting it up with 5x5 full-sized terrains.
If its running, look at the F11 debug panel and see if anything
is using HUGE amounts of memory...
I suspect it may be a TEXTURE memory usage issue.
Too many skins per terrain or something like that...
(yes I know textures arent stored in nexus, but just play along)