From e74107678c38b222e5b9bbf47f2dae0d8b261bd0 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 3 Feb 2024 13:52:43 +1100 Subject: [PATCH] Fix Crafter maximum stack size --- .../minecraft/world/level/block/entity/CrafterBlockEntity.patch | 2 +- .../world/level/block/entity/TileEntityBrewingStand.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nms-patches/net/minecraft/world/level/block/entity/CrafterBlockEntity.patch b/nms-patches/net/minecraft/world/level/block/entity/CrafterBlockEntity.patch index 884f519a3..0968ac7fb 100644 --- a/nms-patches/net/minecraft/world/level/block/entity/CrafterBlockEntity.patch +++ b/nms-patches/net/minecraft/world/level/block/entity/CrafterBlockEntity.patch @@ -19,7 +19,7 @@ protected final IContainerProperties containerData; + // CraftBukkit start - add fields and methods + public List transaction = new java.util.ArrayList<>(); -+ private int maxStack = 1; ++ private int maxStack = MAX_STACK; + + @Override + public List getContents() { diff --git a/nms-patches/net/minecraft/world/level/block/entity/TileEntityBrewingStand.patch b/nms-patches/net/minecraft/world/level/block/entity/TileEntityBrewingStand.patch index ebdc6f2ba..a1524898f 100644 --- a/nms-patches/net/minecraft/world/level/block/entity/TileEntityBrewingStand.patch +++ b/nms-patches/net/minecraft/world/level/block/entity/TileEntityBrewingStand.patch @@ -28,7 +28,7 @@ + // CraftBukkit start - add fields and methods + private int lastTick = MinecraftServer.currentTick; + public List transaction = new java.util.ArrayList(); -+ private int maxStack = 64; ++ private int maxStack = MAX_STACK; + + public void onOpen(CraftHumanEntity who) { + transaction.add(who);