Minecraft/src/main/java/com/microsoft/Malmo/MissionHandlers/AgentQuitFromCraftingItemImplementation.java [114:151]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            if (matcher.allowedItemTypes.contains(is.getItem().getUnlocalizedName())) {
                if (matcher.matchSpec.getColour() != null && matcher.matchSpec.getColour().size() > 0)
                    return true;
                if (matcher.matchSpec.getVariant() != null && matcher.matchSpec.getVariant().size() > 0)
                    return true;
            }
        }

        return false;
    }

    private int getCraftedItemCount(ItemStack is) {
        boolean variant = getVariant(is);

        if (variant)
            return (craftedItems.get(is.getUnlocalizedName()) == null) ? 0 : craftedItems.get(is.getUnlocalizedName());
        else
            return (craftedItems.get(is.getItem().getUnlocalizedName()) == null) ? 0
                    : craftedItems.get(is.getItem().getUnlocalizedName());
    }

    private void addCraftedItemCount(ItemStack is) {
        boolean variant = getVariant(is);

        if (variant) {
            int prev = (craftedItems.get(is.getUnlocalizedName()) == null ? 0
                    : craftedItems.get(is.getUnlocalizedName()));
            craftedItems.put(is.getUnlocalizedName(), prev + is.getCount());
        } else {
            int prev = (craftedItems.get(is.getItem().getUnlocalizedName()) == null ? 0
                    : craftedItems.get(is.getItem().getUnlocalizedName()));
            craftedItems.put(is.getItem().getUnlocalizedName(), prev + is.getCount());
        }
    }

    private void checkForMatch(ItemStack is) {
        int savedCrafted = getCraftedItemCount(is);
        if (is != null) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Minecraft/src/main/java/com/microsoft/Malmo/MissionHandlers/RewardForCraftingItemImplementation.java [63:100]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            if (matcher.allowedItemTypes.contains(is.getItem().getUnlocalizedName())) {
                if (matcher.matchSpec.getColour() != null && matcher.matchSpec.getColour().size() > 0)
                    return true;
                if (matcher.matchSpec.getVariant() != null && matcher.matchSpec.getVariant().size() > 0)
                    return true;
            }
        }

        return false;
    }

    private int getCraftedItemCount(ItemStack is) {
        boolean variant = getVariant(is);

        if (variant)
            return (craftedItems.get(is.getUnlocalizedName()) == null) ? 0 : craftedItems.get(is.getUnlocalizedName());
        else
            return (craftedItems.get(is.getItem().getUnlocalizedName()) == null) ? 0
                    : craftedItems.get(is.getItem().getUnlocalizedName());
    }

    private void addCraftedItemCount(ItemStack is) {
        boolean variant = getVariant(is);

        if (variant) {
            int prev = (craftedItems.get(is.getUnlocalizedName()) == null ? 0
                    : craftedItems.get(is.getUnlocalizedName()));
            craftedItems.put(is.getUnlocalizedName(), prev + is.getCount());
        } else {
            int prev = (craftedItems.get(is.getItem().getUnlocalizedName()) == null ? 0
                    : craftedItems.get(is.getItem().getUnlocalizedName()));
            craftedItems.put(is.getItem().getUnlocalizedName(), prev + is.getCount());
        }
    }

    private void checkForMatch(ItemStack is) {
        int savedCrafted = getCraftedItemCount(is);
        if (is != null) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



