inventory.setMaxStackSize() not working?

Discussion in 'Plugin Development' started by BlockCat, May 21, 2013.

Thread Status:
Not open for further replies.
  1. Hello,
    I am creating a new plugin for a server, at a certain point an inventory is opened.
    For this inventory the maxStackSize is set to 1, but stacks can still have an amount more than 1.

    Code:java
    1.  
    2. Inventory inv = Bukkit.getServer().createInventory(null, 54, title);
    3. inv.setMaxStackSize(1);
    4. inv.getMaxStackSize(); //returns 1 correctly.
    5.  
    6.  


    Is this a bug, or something else?
     
  2. Offline

    TheUpdater

    can you do return 1;
     
  3. Like I said in the first post, it properly returns 1.
     
  4. Offline

    TheUpdater

    well you cant stack inventorys so.... i dont know what you are stacking ^^
     
Thread Status:
Not open for further replies.

Share This Page