diff options
| author | Draknyte1 <Draknyte1@hotmail.com> | 2017-08-24 18:47:40 +1000 |
|---|---|---|
| committer | Draknyte1 <Draknyte1@hotmail.com> | 2017-08-24 18:47:40 +1000 |
| commit | 9532786295e39c639ae40fcdaa90e5b9faf1a73f (patch) | |
| tree | 749497fd09aab181b17687737ebcc2a3717202ad /src/Java/gtPlusPlus/xmod/bop | |
| parent | 7573ee56c6d8ee08319ef17ca28b46efcc5c6ed1 (diff) | |
| parent | 4928538ba331e835cbe640c36d1324f375282629 (diff) | |
| download | GT5-Unofficial-9532786295e39c639ae40fcdaa90e5b9faf1a73f.tar.gz GT5-Unofficial-9532786295e39c639ae40fcdaa90e5b9faf1a73f.tar.bz2 GT5-Unofficial-9532786295e39c639ae40fcdaa90e5b9faf1a73f.zip | |
Merge branch 'master' of https://github.com/draknyte1/GTplusplus
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/bop')
| -rw-r--r-- | src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java b/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java index e36d24e695..0cd76fa734 100644 --- a/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java +++ b/src/Java/gtPlusPlus/xmod/bop/blocks/rainforest/SaplingRainforestTree.java @@ -13,16 +13,18 @@ import net.minecraft.world.gen.feature.*; public class SaplingRainforestTree extends SaplingBase { - public SaplingRainforestTree(){ - super("Rainforest Oak Sapling", "rainforestoak", new String[]{"rainforest"}); - } + public SaplingRainforestTree(){ + super("Rainforest Oak Sapling", "rainforestoak", new String[]{"rainforest"}); + } - @Override + @Override public void func_149878_d(World world, int x, int y, int z, Random rand){ Utils.LOG_WARNING("func_149878_d - 1"); if (!net.minecraftforge.event.terraingen.TerrainGen.saplingGrowTree(world, rand, x, y, z)) return; int l = world.getBlockMetadata(x, y, z) & 7; - Object object = rand.nextInt(10) == 0 ? new WorldGenBigTree(true) : new WorldGenTrees(true); + rand.nextInt(10); + new WorldGenBigTree(true); + new WorldGenTrees(true); int i1 = 0; int j1 = 0; boolean flag = false; @@ -40,10 +42,8 @@ public class SaplingRainforestTree extends SaplingBase { { world.setBlock(x, y, z, block, 0, 4); } -//public WorldGenRainForestTree_Ex(Block wood, Block leaves, int woodMeta, int leavesMeta, boolean doBlockNotify, int minTreeHeight, int randomTreeHeight) { - Class C = BOP_Block_Registrator.class; Object o = new WorldGenRainForestTree_Ex(BOP_Block_Registrator.log_Rainforest, BOP_Block_Registrator.leaves_Rainforest, 0, 0, true, 50, 75); - + if (!((WorldGenerator)o).generate(world, rand, x + i1, y, z + j1)) { if (flag) @@ -59,5 +59,5 @@ public class SaplingRainforestTree extends SaplingBase { } } } - + }
\ No newline at end of file |
