Skip to content

Commit

Permalink
Don't do moss-healing while the item is getting used
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Mar 13, 2015
1 parent f5431b1 commit f0978fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/tconstruct/tools/TActiveOmniMod.java
Expand Up @@ -30,6 +30,8 @@ public void updateTool (ToolCore tool, ItemStack stack, World world, Entity enti
{
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"))
{
Expand Down

0 comments on commit f0978fc

Please sign in to comment.