Merge pull request #391 from smbarbour/patch-1

softBlocks fix:  BlockGrass -> BlockTallGrass
This commit is contained in:
cpw 2012-11-02 18:56:43 -07:00
commit bb5b93028f

View file

@ -66,7 +66,7 @@ import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import net.minecraft.src.Block; import net.minecraft.src.Block;
import net.minecraft.src.BlockFlower; import net.minecraft.src.BlockFlower;
import net.minecraft.src.BlockFluid; import net.minecraft.src.BlockFluid;
import net.minecraft.src.BlockGrass; import net.minecraft.src.BlockTallGrass;
import net.minecraft.src.CommandHandler; import net.minecraft.src.CommandHandler;
import net.minecraft.src.EntityList; import net.minecraft.src.EntityList;
import net.minecraft.src.Item; import net.minecraft.src.Item;
@ -264,7 +264,7 @@ public class BuildCraftCore {
@PostInit @PostInit
public void postInit(FMLPostInitializationEvent event){ public void postInit(FMLPostInitializationEvent event){
for(Block block : Block.blocksList) { for(Block block : Block.blocksList) {
if(block instanceof BlockFluid || block instanceof BlockGrass){ if(block instanceof BlockFluid || block instanceof BlockTallGrass || block instanceof BlockFlower){
BuildCraftAPI.softBlocks[block.blockID] = true; BuildCraftAPI.softBlocks[block.blockID] = true;
} }
} }