Don't do moss-healing while the item is getting used

This commit is contained in:
Bernhard Bonigl committed 2015-03-13 15:29:59 +01:00
1 parent f5431b158b
commit f0978fcd84
1 file changed
+2
@@ -30,6 +30,8 @@ public class TActiveOmniMod extends ActiveToolMod
{
if (!world.isRemote && entity instanceof EntityLivingBase && !((EntityLivingBase) entity).isSwingInProgress && stack.getTagCompound() != null)
{
if(entity instanceof EntityPlayer && (((EntityPlayer) entity).isUsingItem()) && ((EntityPlayer) entity).getItemInUse() == stack)
return;
NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
if (tags.hasKey("Moss"))
{