more fixes

This commit is contained in:
Progwml6 committed 2014-02-01 14:18:17 -05:00
1 parent 48402e1a7e
commit ffd383dc41
44 files changed
+224 -205

No files matched your search

@@ -82,7 +82,7 @@ public class BarricadeBlock extends MantleBlock
}
@Override
public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9)
public boolean func_149727_a (World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9)
{
ItemStack stack = player.getCurrentEquippedItem();
if ((stack != null) && (ComparisonHelper.areEquivalent(stack.getItem(), this)) && (!player.isSneaking()))
@@ -31,24 +31,24 @@ public class Landmine extends MantleBlock
super(par4Material);
this.triggerMobType = EnumCreatureType.monster;
this.func_149647_a(TConstructRegistry.blockTab);
this.setTickRandomly(true);
this.func_149675_a(true);
float var5 = 0.0625F;
this.func_149676_a(var5, 0.0F, var5, 1.0F - var5, 0.03125F, 1.0F - var5);
}
public IIcon getBlockTexture (IBlockAccess world, int x, int y, int z, int side)
{
Block block = world.getBlock(x, y - 1, z);
Block block = world.func_147439_a(x, y - 1, z);
if (block != null)
{
return block.getBlockTexture(world, x, y - 1, z, side);
}
return Blocks.sponge.getIcon(side, world.getBlockMetadata(x, y, z));
return Blocks.sponge.func_149691_a(side, world.getBlockMetadata(x, y, z));
}
public IIcon getIcon (int side, int meta)
{
return Blocks.sponge.getIcon(1, meta);
return Blocks.sponge.func_149691_a(1, meta);
}
public void registerIcons (IIconRegister par1IconRegister)
@@ -193,7 +193,7 @@ public class Landmine extends MantleBlock
{
Entity var10 = (Entity) var9.next();
if (!var10.doesEntityNotTriggerPressurePlate())
if (!var10.func_145773_az())
{
var6 = true;
break;
@@ -48,7 +48,7 @@ public class Punji extends MantleBlock
/* Right-click adds sticks */
@Override
public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer player, int par6, float hitX, float hitY, float hitZ)
public boolean func_149727_a (World world, int x, int y, int z, EntityPlayer player, int par6, float hitX, float hitY, float hitZ)
{
/*if (world.isRemote)
return false;*/