mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
[Bleeding] Implemented Inventory.{get,set}MaxStackSize(). Addresses BUKKIT-1076
- Custom inventories also respect this setting now.
This commit is contained in:
1 parent
66e067f373
commit
5c8fd4995f
14 files changed
+105
-26
No files matched your search
@@ -7,10 +7,11 @@ public class ContainerEnchantTableInventory extends ContainerEnchantTableSubcont
|
||||
ContainerEnchantTableInventory(ContainerEnchantTable containerenchanttable, String s, int i) {
|
||||
super(s, i);
|
||||
this.enchantTable = containerenchanttable;
|
||||
super.setMaxStackSize(1); // CraftBukkit
|
||||
}
|
||||
|
||||
public int getMaxStackSize() {
|
||||
return 1;
|
||||
return super.getMaxStackSize(); // CraftBukkit
|
||||
}
|
||||
|
||||
public void update() {
|
||||
|
||||
Reference in new issue
Block a user