Guest User

Untitled

a guest
Feb 23rd, 2014
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Iterator<Recipe> vanillaRecipes = getServer().recipeIterator();
  2. Recipe recipe;
  3. while (vanillaRecipes.hasNext()) {
  4. recipe = vanillaRecipes.next();
  5. //Removes bread recipe
  6. if (recipe != null && recipe.getResult().getType() == Material.BREAD) {
  7. vanillaRecipes.remove();
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment