Smithing recipes not registering

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • git-Spigot-4d9262c-551e770
    • just my tester plugin
    • Yes

      I noticed that smithing recipes are not registering.

      Example code:

      // This one just for verifying recipes are actually working
      ShapedRecipe shape_test = new ShapedRecipe(new NamespacedKey(this, "shape_test"), new ItemStack(Material.DIAMOND_HOE));
      shape_test.shape("111", "111", "111");
      shape_test.setIngredient('1', Material.DIAMOND);
      Bukkit.addRecipe(shape_test);
      
      // Testing with ExactChoice ... not registering
      SmithingRecipe smith_test = new SmithingRecipe(new NamespacedKey(this, "smith_test"),
              new ItemStack(Material.DIAMOND_CHESTPLATE),
              new RecipeChoice.ExactChoice(new ItemStack(Material.IRON_CHESTPLATE)),
              new RecipeChoice.ExactChoice(new ItemStack(Material.DIAMOND)));
      Bukkit.addRecipe(smith_test);
      
      // Testing with MaterialChoice .... not registering
      SmithingRecipe smith_test_2 = new SmithingRecipe(new NamespacedKey(this, "smith_test_2"),
              new ItemStack(Material.DIAMOND_LEGGINGS),
              new RecipeChoice.MaterialChoice(Material.IRON_LEGGINGS),
              new RecipeChoice.MaterialChoice(Material.DIAMOND));
      Bukkit.addRecipe(smith_test_2);
      

      I did these two tester ones for this issue, and neither of the smithing recipes are registering. I also added a shaped recipe to verify other recipes were registering.
      See pictures below, recipes for the two above are not registered.

       

      I will include my tester plugin. 
      Load plugin. Then using the command:

      /recipe give <yourNameHere> testerplugin:
      

      You should see all the registered recipes.

        1. Screen Shot 2020-07-01 at 5.20.37 PM-1.png
          150 kB
          Shane Bee
        2. Screen Shot 2020-07-01 at 5.23.49 PM.png
          364 kB
          Shane Bee
        3. Screen Shot 2020-07-01 at 5.23.56 PM.png
          358 kB
          Shane Bee

            Assignee:
            Unassigned
            Reporter:
            Shane Bee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: