Move another patch up a bit - should actually close #329

This commit is contained in:
Christian 2012-12-21 01:49:43 -05:00
parent b82cb25eea
commit 708516e060
1 changed files with 15 additions and 8 deletions

View File

@ -33,20 +33,27 @@
if (var8)
{
@@ -345,6 +355,13 @@
}
}
+ if (par3ItemStack != null &&
+ par3ItemStack.getItem() != null &&
+ par3ItemStack.getItem().onItemUseFirst(par3ItemStack, par1EntityPlayer, par2World, par4, par5, par6, par7, var9, var10, var11))
@@ -334,6 +344,12 @@
float var11 = (float)par8Vec3.zCoord - (float)par6;
boolean var12 = false;
int var13;
+ if (par3ItemStack != null &&
+ par3ItemStack.getItem() != null &&
+ par3ItemStack.getItem().onItemUseFirst(par3ItemStack, par1EntityPlayer, par2World, par4, par5, par6, par7, var9, var10, var11))
+ {
+ return true;
+ }
if (!par1EntityPlayer.isSneaking() || par1EntityPlayer.getHeldItem() == null)
{
@@ -344,6 +360,7 @@
var12 = true;
}
}
+
if (!var12 && par3ItemStack != null && par3ItemStack.getItem() instanceof ItemBlock)
{
ItemBlock var16 = (ItemBlock)par3ItemStack.getItem();
@@ -376,7 +393,15 @@
}
else