From 112c20c521d66a1799de35489c7bbe2c6d487334 Mon Sep 17 00:00:00 2001 From: aidancbrady Date: Sat, 23 Apr 2016 18:59:38 -0400 Subject: [PATCH] Fixed falling through certain Generator-related blocks --- .../mekanism/generators/common/block/BlockGenerator.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/mekanism/generators/common/block/BlockGenerator.java b/src/main/java/mekanism/generators/common/block/BlockGenerator.java index 44ddf2a3c..63be3713e 100644 --- a/src/main/java/mekanism/generators/common/block/BlockGenerator.java +++ b/src/main/java/mekanism/generators/common/block/BlockGenerator.java @@ -53,6 +53,7 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.util.MovingObjectPosition; @@ -131,6 +132,14 @@ public class BlockGenerator extends BlockContainer implements ISpecialBounds, IB return !GeneratorType.getFromMetadata(meta).hasModel; } + @Override + public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z) + { + setBlockBoundsBasedOnState(world, x, y, z); + + return super.getCollisionBoundingBoxFromPool(world, x, y, z); + } + @Override @SideOnly(Side.CLIENT) public IIcon getIcon(int side, int meta)