mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
Fix roofed forests posting decoration events for small mushrooms rather than big (#3259)
This commit is contained in:
1 parent
2aaa4f424d
commit
c58a66a816
1 file changed
+1
-1
@@ -28,7 +28,7 @@
|
||||
BlockPos blockpos = p_185379_1_.func_175645_m(p_185379_3_.func_177982_a(k, 0, l));
|
||||
|
||||
- if (p_185379_2_.nextInt(20) == 0)
|
||||
+ if (p_185379_2_.nextInt(20) == 0 && net.minecraftforge.event.terraingen.TerrainGen.decorate(p_185379_1_, p_185379_2_, blockpos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.SHROOM))
|
||||
+ if (p_185379_2_.nextInt(20) == 0 && net.minecraftforge.event.terraingen.TerrainGen.decorate(p_185379_1_, p_185379_2_, blockpos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.BIG_SHROOM))
|
||||
{
|
||||
WorldGenBigMushroom worldgenbigmushroom = new WorldGenBigMushroom();
|
||||
worldgenbigmushroom.func_180709_b(p_185379_1_, p_185379_2_, blockpos);
|
||||
|
||||
Reference in new issue
Block a user