Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4

This commit is contained in:
Florian Nücke 2016-05-27 15:27:28 +02:00
commit 898ba62d09

View File

@ -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