Help with removing recipes!

Discussion in 'Plugin Development' started by SgtPunishment, Jan 29, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    SgtPunishment

    Yeah I'm back, and I'm trying to update my recipe plugin, but I've ran into a problem, I normally use this code

    Code:
                Iterator<Recipe> recipes = getServer().recipeIterator();
                Recipe recipe;
                while (recipes.hasNext()) {
                    recipe = recipes.next();
                    if (recipe != null
                            && recipe.getResult().getType() == Material.GOLDEN_APPLE)
                            recipes.remove();
                }
    
    Inside my onEnable, but for some reason in 1.7.2 it appears to of stopped working... Instead of removing the standard golden apple recipe, it just adds the new recipe that I have made... and I can't see a problem with my code...

    So my question is this...

    Has the method of removing old recipes changed at all?
     
  2. Offline

    SgtPunishment

    Bump, anyone know what's going on? I can't remove recipes using this code...
     
  3. Offline

    SgtPunishment

    Bump again, come on, someone must know the working method...
     
  4. Offline

    SgtPunishment

    Holy crap not one person can answer my simple question?!
     
  5. Offline

    SgtPunishment

  6. Offline

    SgtPunishment

    Bump... yet again
     
  7. Offline

    SgtPunishment

    And another bump
     
Thread Status:
Not open for further replies.

Share This Page