go through items a bit

This commit is contained in:
Progwml6 committed 2014-01-05 10:52:01 -05:00
1 parent 67ccd5b7db
commit 199a92f47a
7 files changed
+20 -19

No files matched your search

@@ -31,14 +31,14 @@ public class BarricadeItem extends ItemBlock
public boolean onItemUse (ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
{
Block i1 = world.getBlock(x, y, z);
Block b = world.getBlock(x, y, z);
if (i1 == Blocks.snow && (world.getBlockMetadata(x, y, z) & 7) < 1)
if (b == Blocks.snow && (world.getBlockMetadata(x, y, z) & 7) < 1)
{
side = 1;
}
else if (i1 != Blocks.vine && i1 != Blocks.tallgrass && i1 != Blocks.deadbush
&& (Block.blocksList[i1] == null || !Block.blocksList[i1].isBlockReplaceable(world, x, y, z)))
else if (b != Blocks.vine && b != Blocks.tallgrass && b != Blocks.deadbush
&& (b == null || !b.isBlockReplaceable(world, x, y, z)))
{
if (side == 0)
{