Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Iterator<Recipe> vanillaRecipes = getServer().recipeIterator();
- Recipe recipe;
- while (vanillaRecipes.hasNext()) {
- recipe = vanillaRecipes.next();
- //Removes bread recipe
- if (recipe != null && recipe.getResult().getType() == Material.BREAD) {
- vanillaRecipes.remove();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment