diff --git a/src/main/java/net/minecraft/server/ContainerAnvilInventory.java b/src/main/java/net/minecraft/server/ContainerAnvilInventory.java index 20d7c69cff..1afa6e7929 100644 --- a/src/main/java/net/minecraft/server/ContainerAnvilInventory.java +++ b/src/main/java/net/minecraft/server/ContainerAnvilInventory.java @@ -46,6 +46,12 @@ public class ContainerAnvilInventory extends InventorySubcontainer { // CraftBuk this.setMaxStackSize(1); // CraftBukkit } + // CraftBukkit start - override inherited maxStack from InventorySubcontainer + public int getMaxStackSize() { + return maxStack; + } + // CraftBukkit end + public void update() { super.update(); this.a.a((IInventory) this); diff --git a/src/main/java/net/minecraft/server/EntityMinecartContainer.java b/src/main/java/net/minecraft/server/EntityMinecartContainer.java index 9f3f196b5c..b599eeba11 100644 --- a/src/main/java/net/minecraft/server/EntityMinecartContainer.java +++ b/src/main/java/net/minecraft/server/EntityMinecartContainer.java @@ -145,7 +145,7 @@ public abstract class EntityMinecartContainer extends EntityMinecartAbstract imp } public int getMaxStackSize() { - return 64; + return maxStack; // CraftBukkit } public void b(int i) { diff --git a/src/main/java/net/minecraft/server/PlayerInventory.java b/src/main/java/net/minecraft/server/PlayerInventory.java index 83cbb97c04..e9b49d1ebe 100644 --- a/src/main/java/net/minecraft/server/PlayerInventory.java +++ b/src/main/java/net/minecraft/server/PlayerInventory.java @@ -411,7 +411,7 @@ public class PlayerInventory implements IInventory { } public int getMaxStackSize() { - return 64; + return maxStack; // CraftBukkit } public boolean b(Block block) { diff --git a/src/main/java/net/minecraft/server/TileEntityHopper.java b/src/main/java/net/minecraft/server/TileEntityHopper.java index 3f1a910ed8..48a882acf9 100644 --- a/src/main/java/net/minecraft/server/TileEntityHopper.java +++ b/src/main/java/net/minecraft/server/TileEntityHopper.java @@ -150,7 +150,7 @@ public class TileEntityHopper extends TileEntity implements IHopper { } public int getMaxStackSize() { - return 64; + return maxStack; // CraftBukkit } public boolean a(EntityHuman entityhuman) {