-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct max stack size in crafter (#10057)
- Loading branch information
1 parent
086ca61
commit 45e01a2
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
patches/server/1052-Use-correct-max-stack-size-in-crafter.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() { |