Why is 'null' deserialized to "null" instead of null!?

This commit is contained in:
main() 2012-05-01 15:31:10 +02:00
parent 82cfbaba4e
commit 5d9941d073
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ public class WorldManager implements MVWorldManager {
WorldCreator creator = WorldCreator.name(name);
creator.environment(world.getEnvironment()).seed(world.getSeed());
if (world.getGenerator() != null)
if ((world.getGenerator() != null) && (!world.getGenerator().equals("null")))
creator.generator(world.getGenerator());
return doLoad(creator);