Skip to content

Commit

Permalink
Fix clientside access on server
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Mar 13, 2015
1 parent f0978fc commit f895951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/tools/TActiveOmniMod.java
Expand Up @@ -30,7 +30,7 @@ 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)
if(entity instanceof EntityPlayer && (((EntityPlayer) entity).isUsingItem()))
return;
NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
if (tags.hasKey("Moss"))
Expand Down

0 comments on commit f895951

Please sign in to comment.