Fixed a class to a deprecated method to fix tool effectiveness.

This commit is contained in:
LexManos 2012-03-18 23:38:03 -07:00
parent 29a65efd77
commit ff37b70e03
1 changed files with 9 additions and 0 deletions

View File

@ -36,6 +36,15 @@
{ {
this.onPlayerDestroyBlock(par1, par2, par3, par4); this.onPlayerDestroyBlock(par1, par2, par3, par4);
} }
@@ -117,7 +124,7 @@
}
Block var6 = Block.blocksList[var5];
- this.curBlockDamage += var6.blockStrength(this.mc.thePlayer);
+ this.curBlockDamage += var6.blockStrength(mc.theWorld, this.mc.thePlayer, par1, par2, par3);
if (this.blockDestroySoundCounter % 4.0F == 0.0F && var6 != null)
{
@@ -195,8 +202,34 @@ @@ -195,8 +202,34 @@
*/ */
public boolean onPlayerRightClick(EntityPlayer par1EntityPlayer, World par2World, ItemStack par3ItemStack, int par4, int par5, int par6, int par7) public boolean onPlayerRightClick(EntityPlayer par1EntityPlayer, World par2World, ItemStack par3ItemStack, int par4, int par5, int par6, int par7)