Fix Crafter maximum stack size

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2024-02-03 13:52:43 +11:00
parent 4fde00f8dc
commit b4d633f7df
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@
protected final IContainerProperties containerData;
+ // CraftBukkit start - add fields and methods
+ public List<HumanEntity> transaction = new java.util.ArrayList<>();
+ private int maxStack = 1;
+ private int maxStack = MAX_STACK;
+
+ @Override
+ public List<ItemStack> getContents() {

View file

@ -28,7 +28,7 @@
+ // CraftBukkit start - add fields and methods
+ private int lastTick = MinecraftServer.currentTick;
+ public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
+ private int maxStack = 64;
+ private int maxStack = MAX_STACK;
+
+ public void onOpen(CraftHumanEntity who) {
+ transaction.add(who);