Adding items to inventory on a safe mode

Discussion in 'Plugin Development' started by NemesisMate, Nov 11, 2013.

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

    NemesisMate

    I'm trying to add items to an inventory, I use:

    Code:java
    1. itemStack.setAmount(amount);
    2. player.getInventory().addItem(itemStack);


    It's working great for 64 stack items but it stacks every item in game on a 64 stack (potions, tools, etc), what gives a lot of problems. Is there a way to make each item stack at their respective max stackable?.
     
  2. Offline

    Minecrell

  3. Offline

    NemesisMate

Thread Status:
Not open for further replies.

Share This Page