diff --git a/tconstruct/blocks/ToolForgeBlock.java b/tconstruct/blocks/ToolForgeBlock.java index 12f52168..e2d68097 100644 --- a/tconstruct/blocks/ToolForgeBlock.java +++ b/tconstruct/blocks/ToolForgeBlock.java @@ -1,5 +1,8 @@ package tconstruct.blocks; +import static net.minecraftforge.common.ForgeDirection.DOWN; +import static net.minecraftforge.common.ForgeDirection.UP; + import java.util.List; import tconstruct.TConstruct; @@ -11,6 +14,11 @@ import tconstruct.library.TConstructRegistry; import tconstruct.library.blocks.InventoryBlock; import net.minecraft.block.Block; +import net.minecraft.block.BlockFarmland; +import net.minecraft.block.BlockHalfSlab; +import net.minecraft.block.BlockHopper; +import net.minecraft.block.BlockPoweredOre; +import net.minecraft.block.BlockStairs; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.creativetab.CreativeTabs; @@ -20,6 +28,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.Icon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; +import net.minecraftforge.common.ForgeDirection; public class ToolForgeBlock extends InventoryBlock { @@ -91,6 +100,11 @@ public class ToolForgeBlock extends InventoryBlock return false; } + @Override + public boolean isBlockSolidOnSide(World world, int x, int y, int z, ForgeDirection side){ + return side == ForgeDirection.UP; + } + @Override public int getRenderType () { diff --git a/tconstruct/blocks/ToolStationBlock.java b/tconstruct/blocks/ToolStationBlock.java index cb7f4a51..24548264 100644 --- a/tconstruct/blocks/ToolStationBlock.java +++ b/tconstruct/blocks/ToolStationBlock.java @@ -24,6 +24,7 @@ import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.Icon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; +import net.minecraftforge.common.ForgeDirection; public class ToolStationBlock extends InventoryBlock { @@ -88,7 +89,12 @@ public class ToolStationBlock extends InventoryBlock { return false; } - + + @Override + public boolean isBlockSolidOnSide(World world, int x, int y, int z, ForgeDirection side){ + return side == ForgeDirection.UP; + } + @Override public int getRenderType () {