mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 12:17:17 -04:00
Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.10
This commit is contained in:
commit
0f7d40319f
@ -15,10 +15,10 @@ class LootDiskCyclingRecipe extends IRecipe {
|
||||
}
|
||||
|
||||
override def getCraftingResult(crafting: InventoryCrafting): ItemStack = {
|
||||
val lootDiskStacks = Loot.worldDisks.map(_._1)
|
||||
collectStacks(crafting).find(Loot.isLootDisk) match {
|
||||
case Some(lootDisk) =>
|
||||
case Some(lootDisk) if lootDiskStacks.nonEmpty =>
|
||||
val lootFactoryName = getLootFactoryName(lootDisk)
|
||||
val lootDiskStacks = Loot.worldDisks.map(_._1)
|
||||
val oldIndex = lootDiskStacks.indexWhere(s => getLootFactoryName(s) == lootFactoryName)
|
||||
val newIndex = (oldIndex + 1) % lootDiskStacks.length
|
||||
lootDiskStacks(newIndex).copy()
|
||||
|
Loading…
x
Reference in New Issue
Block a user