mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 03:05:30 -04:00
Cleanup.
This commit is contained in:
parent
b50d3872ee
commit
896bfa2728
@ -1,8 +1,6 @@
|
|||||||
package li.cil.oc.common.recipe
|
package li.cil.oc.common.recipe
|
||||||
|
|
||||||
import li.cil.oc.Constants
|
|
||||||
import li.cil.oc.Settings
|
import li.cil.oc.Settings
|
||||||
import li.cil.oc.api
|
|
||||||
import li.cil.oc.common.Loot
|
import li.cil.oc.common.Loot
|
||||||
import li.cil.oc.integration.util.Wrench
|
import li.cil.oc.integration.util.Wrench
|
||||||
import net.minecraft.inventory.InventoryCrafting
|
import net.minecraft.inventory.InventoryCrafting
|
||||||
@ -11,8 +9,6 @@ import net.minecraft.item.crafting.IRecipe
|
|||||||
import net.minecraft.world.World
|
import net.minecraft.world.World
|
||||||
|
|
||||||
class LootDiskCyclingRecipe extends IRecipe {
|
class LootDiskCyclingRecipe extends IRecipe {
|
||||||
private final val Floppy = api.Items.get(Constants.ItemName.Floppy)
|
|
||||||
|
|
||||||
override def matches(crafting: InventoryCrafting, world: World): Boolean = {
|
override def matches(crafting: InventoryCrafting, world: World): Boolean = {
|
||||||
val stacks = collectStacks(crafting).toArray
|
val stacks = collectStacks(crafting).toArray
|
||||||
stacks.length == 2 && stacks.exists(Loot.isLootDisk) && stacks.exists(Wrench.isWrench)
|
stacks.length == 2 && stacks.exists(Loot.isLootDisk) && stacks.exists(Wrench.isWrench)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user