Skip to content

Commit

Permalink
Fix Natura crashing on server due to calling a method that's client o…
Browse files Browse the repository at this point in the history
…nly.
  • Loading branch information
alexbegt committed Jul 7, 2017
1 parent 1c25a83 commit a693b2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion settings.gradle
Expand Up @@ -16,4 +16,4 @@ include 'api'
include 'services:webservice'
*/

rootProject.name = 'natura'
rootProject.name = 'Natura-1.12'
Expand Up @@ -20,8 +20,8 @@
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.gen.IChunkGenerator;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.IChunkGenerator;
import net.minecraftforge.common.BiomeDictionary;
import net.minecraftforge.common.BiomeDictionary.Type;
import net.minecraftforge.fml.common.IWorldGenerator;
Expand Down Expand Up @@ -96,13 +96,6 @@ public void generateOverworld(Random random, int chunkX, int chunkZ, World world

BlockPos position;

String biomeName = world.getChunkFromBlockCoords(chunkPos).getBiome(chunkPos, world.getBiomeProvider()).getBiomeName();

if (biomeName == null)
{
return;
}

Biome biome = world.getChunkFromBlockCoords(chunkPos).getBiome(chunkPos, world.getBiomeProvider());

if (biome == null)
Expand Down

0 comments on commit a693b2d

Please sign in to comment.