And if you have an existing world and want to know its seed:
Code:
WorldInfo info = WorldInfo.load(baseDir);
if( info == null ) {
// It's a new world and has no defaults yet
info = WorldInfo.create( baseDir, "Mythruna:" + seed, seed );
} else {
// Retrieve the world's seed
seed = info.getSeed();
}
if( info == null ) {
// It's a new world and has no defaults yet
info = WorldInfo.create( baseDir, "Mythruna:" + seed, seed );
} else {
// Retrieve the world's seed
seed = info.getSeed();
}
Thanks for informing me Paul. Ill have to do it after i clean my workspace.