Well I tried putting in a if(World.isRemote) line to see if it was a server issue. Doesn't seem to be. Here is the original code that works, except for the whole saving thing.
int ClickId;
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
if(par1ItemStack.stackTagCompound == null)
{
par1ItemStack.stackTagCompound = new NBTTagCompound();
}
if(!par2World.isRemote)
{
par1ItemStack.stackTagCompound.setInteger("ClickCount", this.ClickId);
this.ClickId++;
par3EntityPlayer.addChatMessage("The count of right clicks is " + this.ClickId);
}
return par1ItemStack;
}
If it's a eclipse issue that is really troubling. I'll have to re-obf just to test any further changes. :'(