Solved Removing limit from MerchantRecipe

Discussion in 'Plugin Development' started by ArthurMaker, May 4, 2014.

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

    ArthurMaker

    So yeah, right... MerchantRecipes have a limit of 7 uses. But I want to remove this freaking limit.
    So I did this:
    Code:java
    1. public MerchantRecipe toMerchantRecipe(){
    2. MerchantRecipe mr = new MerchantRecipe(CraftItemStack.asNMSCopy(this.i1), CraftItemStack.asNMSCopy(this.i2), CraftItemStack.asNMSCopy(this.i3));
    3. mr.a(-7);
    4. return mr;
    5. }

    It used to work well, but it does not anymore! D:
    Can anyone help me?
     
  2. Offline

    Bobit

    Nobody has a clue what plugin you're talking about.
     
  3. Offline

    RawCode

    check source code of classes involved and try again.
     
  4. Offline

    ArthurMaker

    Bobit
    I'm modifying the IMerchant. It is simple '-'

    RawCode
    I did it, but I didn't find anything about removing this limit. D:

    Well, I've solved this by extending EntityVillager and modifying a();.
    Done!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
Thread Status:
Not open for further replies.

Share This Page