mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-28 07:25:35 -04:00
Merge branch 'master-MC1.7.10' into ic2-crop-integration
This commit is contained in:
commit
72680f6725
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@
|
|||||||
|
|
||||||
# VSCode
|
# VSCode
|
||||||
/.vscode
|
/.vscode
|
||||||
|
*.bat
|
||||||
|
@ -88,7 +88,7 @@ repositories {
|
|||||||
artifactPattern "https://maven.cil.li/[module]/[revision]/[module]-[revision]-[classifier].[ext]"
|
artifactPattern "https://maven.cil.li/[module]/[revision]/[module]-[revision]-[classifier].[ext]"
|
||||||
}
|
}
|
||||||
maven {
|
maven {
|
||||||
name = "ic2, forestry"
|
name = "ic2"
|
||||||
url = "http://maven.ic2.player.to/"
|
url = "http://maven.ic2.player.to/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
minecraft.version=1.7.10
|
minecraft.version=1.7.10
|
||||||
forge.version=10.13.4.1614-1.7.10
|
forge.version=10.13.4.1614-1.7.10
|
||||||
|
|
||||||
oc.version=1.7.5
|
oc.version=1.7.5.1
|
||||||
|
|
||||||
ae2.version=rv2-beta-26
|
ae2.version=rv2-beta-26
|
||||||
bc.version=7.0.9
|
bc.version=7.0.9
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
package li.cil.oc.integration.thaumicenergistics
|
||||||
|
import java.util
|
||||||
|
import cpw.mods.fml.common.registry.GameRegistry
|
||||||
|
import li.cil.oc.api.driver.Converter
|
||||||
|
import net.minecraft.item.ItemStack
|
||||||
|
import scala.collection.convert.WrapAsScala._
|
||||||
|
|
||||||
|
object ConvertAspectCraftable extends Converter {
|
||||||
|
private val DistillationPattern = GameRegistry.findItem("thaumicenergistics", "crafting.aspect")
|
||||||
|
override def convert(value: scala.Any, output: util.Map[AnyRef, AnyRef]): Unit = value match {
|
||||||
|
case stack: ItemStack if stack.getItem == DistillationPattern && stack.hasTagCompound =>
|
||||||
|
output += "aspect" -> stack.getTagCompound.getString("Aspect")
|
||||||
|
case _ =>
|
||||||
|
}
|
||||||
|
}
|
@ -14,5 +14,6 @@ object ModThaumicEnergistics extends ModProxy {
|
|||||||
|
|
||||||
Driver.add(DriverController.Provider)
|
Driver.add(DriverController.Provider)
|
||||||
Driver.add(DriverBlockInterface.Provider)
|
Driver.add(DriverBlockInterface.Provider)
|
||||||
|
Driver.add(ConvertAspectCraftable)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user