Fix RFTools incompatibility
This commit is contained in:
parent
a03a87ea09
commit
7748818ef3
2 changed files with 20 additions and 3 deletions
|
@ -29,11 +29,20 @@ public class BiomeLimbo extends Biome {
|
||||||
spawnableMonsterList.add(new SpawnListEntry(EntityMonolith.class, 100, 4, 4));
|
spawnableMonsterList.add(new SpawnListEntry(EntityMonolith.class, 100, 4, 4));
|
||||||
|
|
||||||
flowers.clear();
|
flowers.clear();
|
||||||
|
|
||||||
|
decorator.extraTreeChance = 0;
|
||||||
|
decorator.flowersPerChunk = 0;
|
||||||
|
decorator.grassPerChunk = 0;
|
||||||
|
decorator.gravelPatchesPerChunk = 0;
|
||||||
|
decorator.sandPatchesPerChunk = 0;
|
||||||
|
decorator.clayPerChunk = 0;
|
||||||
|
decorator.generateFalls = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: move generation here
|
// TODO: move generation here
|
||||||
|
|
||||||
@Override public BiomeDecorator createBiomeDecorator() { return null; }
|
// Some mods like RFTools rely on the decorator being present, so we need to create one even if we don't use it.
|
||||||
|
//@Override public BiomeDecorator createBiomeDecorator() { return null; }
|
||||||
|
|
||||||
@Override public void decorate(World world, Random rand, BlockPos pos) {}
|
@Override public void decorate(World world, Random rand, BlockPos pos) {}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraft.world.biome.Biome;
|
import net.minecraft.world.biome.Biome;
|
||||||
import net.minecraft.world.biome.BiomeDecorator;
|
|
||||||
import net.minecraft.world.chunk.ChunkPrimer;
|
import net.minecraft.world.chunk.ChunkPrimer;
|
||||||
import net.minecraftforge.fml.relauncher.Side;
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
|
@ -35,9 +34,18 @@ public class BiomeBlank extends Biome {
|
||||||
if (monoliths) spawnableMonsterList.add(new SpawnListEntry(EntityMonolith.class, 100, 4, 4));
|
if (monoliths) spawnableMonsterList.add(new SpawnListEntry(EntityMonolith.class, 100, 4, 4));
|
||||||
|
|
||||||
flowers.clear();
|
flowers.clear();
|
||||||
|
|
||||||
|
decorator.extraTreeChance = 0;
|
||||||
|
decorator.flowersPerChunk = 0;
|
||||||
|
decorator.grassPerChunk = 0;
|
||||||
|
decorator.gravelPatchesPerChunk = 0;
|
||||||
|
decorator.sandPatchesPerChunk = 0;
|
||||||
|
decorator.clayPerChunk = 0;
|
||||||
|
decorator.generateFalls = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public BiomeDecorator createBiomeDecorator() { return null; } // For efficiency
|
// Some mods like RFTools rely on the decorator being present, so we need to create one even if we don't use it.
|
||||||
|
//@Override public BiomeDecorator createBiomeDecorator() { return null; }
|
||||||
|
|
||||||
@Override public void decorate(World world, Random rand, BlockPos pos) {}
|
@Override public void decorate(World world, Random rand, BlockPos pos) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue