--- ../src-base/minecraft/net/minecraft/world/WorldProvider.java
+++ ../src-work/minecraft/net/minecraft/world/WorldProvider.java
@@ -52,26 +52,12 @@
 
     protected void func_76572_b()
     {
-        WorldType worldtype = this.field_76579_a.func_72912_H().func_76067_t();
-
-        if (worldtype == WorldType.field_77138_c)
-        {
-            FlatGeneratorInfo flatgeneratorinfo = FlatGeneratorInfo.func_82651_a(this.field_76579_a.func_72912_H().func_82571_y());
-            this.field_76578_c = new WorldChunkManagerHell(BiomeGenBase.func_180276_a(flatgeneratorinfo.func_82648_a(), BiomeGenBase.field_180279_ad), 0.5F);
-        }
-        else if (worldtype == WorldType.field_180272_g)
-        {
-            this.field_76578_c = new WorldChunkManagerHell(BiomeGenBase.field_76772_c, 0.0F);
-        }
-        else
-        {
-            this.field_76578_c = new WorldChunkManager(this.field_76579_a);
-        }
+        this.field_76578_c = field_76577_b.getChunkManager(field_76579_a);
     }
 
     public IChunkProvider func_76555_c()
     {
-        return (IChunkProvider)(this.field_76577_b == WorldType.field_77138_c ? new ChunkProviderFlat(this.field_76579_a, this.field_76579_a.func_72905_C(), this.field_76579_a.func_72912_H().func_76089_r(), this.field_82913_c) : (this.field_76577_b == WorldType.field_180272_g ? new ChunkProviderDebug(this.field_76579_a) : (this.field_76577_b == WorldType.field_180271_f ? new ChunkProviderGenerate(this.field_76579_a, this.field_76579_a.func_72905_C(), this.field_76579_a.func_72912_H().func_76089_r(), this.field_82913_c) : new ChunkProviderGenerate(this.field_76579_a, this.field_76579_a.func_72905_C(), this.field_76579_a.func_72912_H().func_76089_r(), this.field_82913_c))));
+        return field_76577_b.getChunkGenerator(field_76579_a, field_82913_c);
     }
 
     public boolean func_76566_a(int p_76566_1_, int p_76566_2_)
@@ -177,13 +163,13 @@
 
     public int func_76557_i()
     {
-        return this.field_76577_b == WorldType.field_77138_c ? 4 : 64;
+        return this.field_76577_b.getMinimumSpawnHeight(this.field_76579_a);
     }
 
     @SideOnly(Side.CLIENT)
     public double func_76565_k()
     {
-        return this.field_76577_b == WorldType.field_77138_c ? 1.0D : 0.03125D;
+        return this.field_76577_b.voidFadeMagnitude();
     }
 
     @SideOnly(Side.CLIENT)
