Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5327

Bukkit.getRecipesFor() bug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • git-Spigot-94af569-6ddeb98 (MC 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
    • Yes

      Recipes for items are not correct, for example only one recipe for creating WOODEN_AXE and requires ACACIA_PLANKS.

      Attached a image of the outpout of that code:

       

      @Override

      public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
      if (!(sender instanceof Player)) return false;
      Player p = (Player) sender;
      List<Recipe> lr =Bukkit.getRecipesFor(p.getInventory().getItemInMainHand());
      int i = 0;
      for(Recipe r : lr)

      { p.sendMessage("§2RECIPE §6"+i); ShapedRecipe sp = (ShapedRecipe)r; p.sendMessage(sp.getIngredientMap().toString()); i++; }

      return true;

      }

            Unassigned Unassigned
            Multielio Multileio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: