@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/InventoryCraftResult.java
|
||||
+++ b/net/minecraft/server/InventoryCraftResult.java
|
||||
@@ -2,12 +2,45 @@
|
||||
@@ -2,12 +2,50 @@
|
||||
|
||||
import java.util.Iterator;
|
||||
import javax.annotation.Nullable;
|
||||
@@ -13,7 +13,7 @@
|
||||
public class InventoryCraftResult implements IInventory, RecipeHolder {
|
||||
|
||||
private final NonNullList<ItemStack> items;
|
||||
private IRecipe b;
|
||||
private IRecipe<?> b;
|
||||
|
||||
+ // CraftBukkit start
|
||||
+ private int maxStack = MAX_STACK;
|
||||
@@ -33,6 +33,11 @@
|
||||
+ return new java.util.ArrayList<HumanEntity>();
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public int getMaxStackSize() {
|
||||
+ return maxStack;
|
||||
+ }
|
||||
+
|
||||
+ public void setMaxStackSize(int size) {
|
||||
+ maxStack = size;
|
||||
+ }
|
||||
@@ -46,12 +51,3 @@
|
||||
public InventoryCraftResult() {
|
||||
this.items = NonNullList.a(1, ItemStack.a);
|
||||
}
|
||||
@@ -62,7 +95,7 @@
|
||||
}
|
||||
|
||||
public int getMaxStackSize() {
|
||||
- return 64;
|
||||
+ return maxStack; // CraftBukkit
|
||||
}
|
||||
|
||||
public void update() {}
|
||||
|
||||
Reference in New Issue
Block a user