From 469fa9f5d24f6c1ed5a056a4be9e9b16ad382857 Mon Sep 17 00:00:00 2001 From: Pahimar Date: Fri, 4 Jul 2014 16:16:11 -0400 Subject: [PATCH] Add back in that you don't need to Shift place Glass Bells on top of Aludel's --- src/main/java/com/pahimar/ee3/block/BlockAludel.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/pahimar/ee3/block/BlockAludel.java b/src/main/java/com/pahimar/ee3/block/BlockAludel.java index e465bbc9..33d76509 100644 --- a/src/main/java/com/pahimar/ee3/block/BlockAludel.java +++ b/src/main/java/com/pahimar/ee3/block/BlockAludel.java @@ -1,6 +1,7 @@ package com.pahimar.ee3.block; import com.pahimar.ee3.EquivalentExchange3; +import com.pahimar.ee3.init.ModBlocks; import com.pahimar.ee3.reference.GuiIds; import com.pahimar.ee3.reference.Names; import com.pahimar.ee3.reference.Particles; @@ -12,6 +13,7 @@ import net.minecraft.block.ITileEntityProvider; import net.minecraft.block.material.Material; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.IBlockAccess; @@ -112,6 +114,14 @@ public class BlockAludel extends BlockEE implements ITileEntityProvider } } + if (world.getTileEntity(x, y, z) instanceof TileEntityAludel && ModBlocks.glassBell.canPlaceBlockAt(world, x, y + 1, z) && faceHit == ForgeDirection.UP.ordinal()) + { + if (player.getHeldItem() != null && player.getHeldItem().getItem() instanceof ItemBlock && ((ItemBlock) player.getHeldItem().getItem()).field_150939_a == ModBlocks.glassBell) + { + return false; + } + } + return true; } }