mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
11 lines
643 B
Diff
11 lines
643 B
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockSapling.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockSapling.java
|
|
@@ -71,6 +71,7 @@
|
|
|
|
public void func_149878_d(World p_149878_1_, int p_149878_2_, int p_149878_3_, int p_149878_4_, Random p_149878_5_)
|
|
{
|
|
+ if (!net.minecraftforge.event.terraingen.TerrainGen.saplingGrowTree(p_149878_1_, p_149878_5_, p_149878_2_, p_149878_3_, p_149878_4_)) return;
|
|
int l = p_149878_1_.func_72805_g(p_149878_2_, p_149878_3_, p_149878_4_) & 7;
|
|
Object object = p_149878_5_.nextInt(10) == 0 ? new WorldGenBigTree(true) : new WorldGenTrees(true);
|
|
int i1 = 0;
|