From 154124acd8622c9391448430a4d44dbc20c46f79 Mon Sep 17 00:00:00 2001 From: LexManos Date: Mon, 1 Oct 2012 18:51:35 -0700 Subject: [PATCH] Fix issue where mushrooms would not check the proper soil block. --- patches/common/net/minecraft/src/BlockMushroom.java.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/patches/common/net/minecraft/src/BlockMushroom.java.patch b/patches/common/net/minecraft/src/BlockMushroom.java.patch index 5bbeabda6d..9cafc49201 100644 --- a/patches/common/net/minecraft/src/BlockMushroom.java.patch +++ b/patches/common/net/minecraft/src/BlockMushroom.java.patch @@ -9,12 +9,14 @@ public class BlockMushroom extends BlockFlower { -@@ -94,7 +96,7 @@ +@@ -94,7 +96,9 @@ if (par3 >= 0 && par3 < 256) { int var5 = par1World.getBlockId(par2, par3 - 1, par4); - return var5 == Block.mycelium.blockID || par1World.getFullBlockLightValue(par2, par3, par4) < 13 && this.canThisPlantGrowOnThisBlockID(var5); -+ return var5 == Block.mycelium.blockID || par1World.getFullBlockLightValue(par2, par3, par4) < 13 && canSustainPlant(par1World, par2, par3 - 1, par4, ForgeDirection.UP, this); ++ Block soil = Block.blocksList[var5]; ++ return (var5 == Block.mycelium.blockID || par1World.getFullBlockLightValue(par2, par3, par4) < 13) && ++ (soil != null && soil.canSustainPlant(par1World, par2, par3 - 1, par4, ForgeDirection.UP, this)); } else {