if (!par1World.isRemote)
{
if (player.inventory.getCurrentItem() != null)
{
EnumWireFrequency freq = ItemUtils.isDye(player.inventory.getCurrentItem());
if (freq != EnumWireFrequency.NONE)
{
tileEntity.setFrequency(freq);
if (!player.capabilities.isCreativeMode)