@SuppressWarnings("deprecation")
	public Restriction getRestriction(ItemStack item) {

		int dataValue = item.getDurability();

		if (shouldIgnoreDataValue(item) || item.getDurability() == 0) {
			dataValue = -1;
		}

		for (Restriction r : this.restrictions) {
			if (r.getItemID() != item.getTypeId())
				continue;

			if (r.hasEqualDataValue(dataValue))
				;

			return r;
		}

		return null;
	}