mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 12:17:17 -04:00
Fixed coloring recipe duping stuff.
This commit is contained in:
parent
c1b65f2100
commit
8dbdd383e5
@ -2,12 +2,8 @@ package li.cil.oc.common.recipe
|
|||||||
|
|
||||||
import net.minecraft.inventory.InventoryCrafting
|
import net.minecraft.inventory.InventoryCrafting
|
||||||
import net.minecraft.item.crafting.IRecipe
|
import net.minecraft.item.crafting.IRecipe
|
||||||
|
import net.minecraftforge.common.ForgeHooks
|
||||||
|
|
||||||
trait ContainerItemAwareRecipe extends IRecipe {
|
trait ContainerItemAwareRecipe extends IRecipe {
|
||||||
override def getRemainingItems(inv: InventoryCrafting) =
|
override def getRemainingItems(inv: InventoryCrafting) = ForgeHooks.defaultRecipeGetRemainingItems(inv)
|
||||||
(0 until inv.getSizeInventory).
|
|
||||||
map(inv.getStackInSlot).
|
|
||||||
map(net.minecraftforge.common.ForgeHooks.getContainerItem).
|
|
||||||
filter(_ != null).
|
|
||||||
toArray
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user