aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2023-12-21 09:10:28 -0800
committerGitHub <[email protected]>2023-12-21 09:10:28 -0800
commit45e01a2a78a219e5ead398a3bcd7be1200507aac (patch)
treef65f1c0fe6577d44661e2c5ca4aff6d80a340e69
parent086ca616d8bd98dde4e4859d29ce89314494d90c (diff)
downloadPaper-45e01a2a78a219e5ead398a3bcd7be1200507aac.tar.gz
Paper-45e01a2a78a219e5ead398a3bcd7be1200507aac.zip
Use correct max stack size in crafter (#10057)
-rw-r--r--patches/server/1052-Use-correct-max-stack-size-in-crafter.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/1052-Use-correct-max-stack-size-in-crafter.patch b/patches/server/1052-Use-correct-max-stack-size-in-crafter.patch
new file mode 100644
index 0000000000..0ee54e0bc8
--- /dev/null
+++ b/patches/server/1052-Use-correct-max-stack-size-in-crafter.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Jake Potrebic <[email protected]>
+Date: Tue, 19 Dec 2023 13:52:21 -0800
+Subject: [PATCH] Use correct max stack size in crafter
+
+
+diff --git a/src/main/java/net/minecraft/world/level/block/entity/CrafterBlockEntity.java b/src/main/java/net/minecraft/world/level/block/entity/CrafterBlockEntity.java
+index c832aad3312ecd4d8027e4f78c12f640dec56bf9..0801e09d41223c65eee37256c5cfb3c6dce1e44e 100644
+--- a/src/main/java/net/minecraft/world/level/block/entity/CrafterBlockEntity.java
++++ b/src/main/java/net/minecraft/world/level/block/entity/CrafterBlockEntity.java
+@@ -40,7 +40,7 @@ public class CrafterBlockEntity extends RandomizableContainerBlockEntity impleme
+ protected final ContainerData containerData;
+ // CraftBukkit start - add fields and methods
+ public List<HumanEntity> transaction = new java.util.ArrayList<>();
+- private int maxStack = 1;
++ private int maxStack = CraftingContainer.LARGE_MAX_STACK_SIZE; // Paper - use correct stack size
+
+ @Override
+ public List<ItemStack> getContents() {