Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/me/mehboss/crafting/CraftManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down