Fixes to configs, optimise imports.
This commit is contained in:
parent
45047be17b
commit
46cdf8f587
115 changed files with 131 additions and 345 deletions
|
@ -1,7 +1,6 @@
|
|||
package techreborn.world;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.state.BlockState;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
|
|
|
@ -15,13 +15,11 @@ import java.util.Random;
|
|||
*/
|
||||
public class TreeGenerator implements IWorldGenerator {
|
||||
|
||||
public static ConfigTechReborn config;
|
||||
|
||||
public static RubberTreeGenerator treeGenerator = new RubberTreeGenerator();
|
||||
|
||||
@Override
|
||||
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
|
||||
if (config.RubberTreeGen) {
|
||||
if (ConfigTechReborn.RubberTreeGen) {
|
||||
int chance = 75;
|
||||
boolean isValidSpawn = false;
|
||||
BiomeGenBase biomeGenBase = world.getBiomeGenForCoords(new BlockPos(chunkX * 16, 72, chunkZ * 16));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue