1.15.2 ShapedRecipe & NamespacedKey Help

Discussion in 'Spigot Plugin Development' started by Snowmite, Jan 15, 2020.

  1. So I read about the NamespacedKeys and ShapedRecipes and for some reason I cannot do:

    Code (Text):
    ShapedRecipe recipe = new ShapedRecipe(key, item);
    It says expected 1 argument but found two, did this method get removed from spigot? I am using spigot 1.15
  2. Screenshot_4.png

    Uhm only the constructor with one ItemStack is deprecated... the other one should work.
    PS for me it works.
  3. md_5

    Administrator Developer

    You're probably not compiling against 1.15.1
  4. I am now using 1.15.1 and it still shows the same error :/
  5. Are you sure? It's there for me.
  6. Are you absolutely sure you are building with 1.15? Also make sure you didn't accidently add two Spigot-API libraries.