mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 19:56:17 -04:00
Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4
This commit is contained in:
commit
898ba62d09
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user