diff --git a/src/me/mehboss/crafting/CraftManager.java b/src/me/mehboss/crafting/CraftManager.java index 62dd414..68535ef 100644 --- a/src/me/mehboss/crafting/CraftManager.java +++ b/src/me/mehboss/crafting/CraftManager.java @@ -573,8 +573,17 @@ void handleCrafting(PrepareItemCraftEvent e) { return; } - if (hasVanillaIngredients(inv, inv.getResult())) + if (hasVanillaIngredients(inv, inv.getResult())) { + org.bukkit.inventory.Recipe bukkit = e.getRecipe(); + if (bukkit instanceof Keyed) { + NamespacedKey key = ((Keyed) bukkit).getKey(); + if (key.getNamespace().equalsIgnoreCase(Main.getInstance().getName().toLowerCase())) { + logDebug("[hasVanillaIngredients] Blocking vanilla craft of CustomRecipes recipe: " + key.getKey(), ""); + inv.setResult(new ItemStack(Material.AIR)); + } + } return; + } logDebug("[handleCrafting] Fired craft event, beginning checks..", "", p.getUniqueId()); handleCraftingChecks(inv, p);