From a68281e2799fabe537e36c378eb9f79039dc19f5 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 19 Nov 2016 21:14:46 +1100 Subject: [PATCH] SPIGOT-2800: Can only smelt 63 stack By: md_5 --- paper-server/nms-patches/TileEntityFurnace.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/TileEntityFurnace.patch b/paper-server/nms-patches/TileEntityFurnace.patch index 5c01f0b7c7..35723db1fe 100644 --- a/paper-server/nms-patches/TileEntityFurnace.patch +++ b/paper-server/nms-patches/TileEntityFurnace.patch @@ -135,7 +135,7 @@ - return itemstack1.isEmpty() ? true : (!itemstack1.doMaterialsMatch(itemstack) ? false : (itemstack1.getCount() < this.getMaxStackSize() && itemstack1.getCount() < itemstack1.getMaxStackSize() ? true : itemstack1.getCount() < itemstack.getMaxStackSize())); + // CraftBukkit - consider resultant count instead of current count -+ return itemstack1.isEmpty() ? true : (!itemstack1.doMaterialsMatch(itemstack) ? false : (itemstack1.getCount() + itemstack.getCount() < this.getMaxStackSize() && itemstack1.getCount() + itemstack.getCount() < itemstack1.getMaxStackSize() ? true : itemstack1.getCount() + itemstack.getCount() < itemstack.getMaxStackSize())); ++ return itemstack1.isEmpty() ? true : (!itemstack1.doMaterialsMatch(itemstack) ? false : (itemstack1.getCount() + itemstack.getCount() <= this.getMaxStackSize() && itemstack1.getCount() + itemstack.getCount() < itemstack1.getMaxStackSize() ? true : itemstack1.getCount() + itemstack.getCount() <= itemstack.getMaxStackSize())); } } }