From 030ebb518d8cc5009a96af06ff25f65b0339e6a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Fri, 27 May 2016 15:27:14 +0200 Subject: [PATCH] This is way more weird than I thought... --- .../li/cil/oc/common/recipe/LootDiskCyclingRecipe.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/scala/li/cil/oc/common/recipe/LootDiskCyclingRecipe.scala b/src/main/scala/li/cil/oc/common/recipe/LootDiskCyclingRecipe.scala index ebd9d907e..f87e3edcb 100644 --- a/src/main/scala/li/cil/oc/common/recipe/LootDiskCyclingRecipe.scala +++ b/src/main/scala/li/cil/oc/common/recipe/LootDiskCyclingRecipe.scala @@ -37,8 +37,10 @@ class LootDiskCyclingRecipe extends IRecipe { override def getRemainingItems(crafting: InventoryCrafting): Array[ItemStack] = { val result = new Array[ItemStack](crafting.getSizeInventory) for (slot <- 0 until crafting.getSizeInventory) { - if (Wrench.isWrench(crafting.getStackInSlot(slot))) { - result(slot) = crafting.getStackInSlot(slot) + val stack = crafting.getStackInSlot(slot) + if (Wrench.isWrench(stack)) { + result(slot) = stack.copy() + stack.stackSize = 0 } } result