Compatibility fixes for forge 10.13.3.x

This commit is contained in:
bdew committed 2015-04-14 19:36:31 +03:00
1 parent 4f848deeb8
commit 69efaa4ed3
5 files changed
+7 -7

No files matched your search

@@ -90,7 +90,7 @@ class ExtractorHandler extends BaseRecipeHandler(5, 13) {
override def loadCraftingRecipes(outputId: String, results: AnyRef*): Unit = {
Some(outputId, results) collect {
case ("liquid", Seq(x: FluidStack)) if x.fluidID == Fluids.dna.getID => addAllRecipes()
case ("liquid", Seq(x: FluidStack)) if x.getFluid == Fluids.dna => addAllRecipes()
case ("item", Seq(IStackBlock(x))) if x == Fluids.dna.getBlock => addAllRecipes()
case ("Extractor", _) => addAllRecipes()
}
@@ -50,7 +50,7 @@ class LiquifierHandler extends BaseRecipeHandler(5, 13) {
override def loadCraftingRecipes(outputId: String, results: AnyRef*): Unit = {
Some(outputId, results) collect {
case ("liquid", Seq(x: FluidStack)) if x.fluidID == Fluids.protein.getID => addAllRecipes()
case ("liquid", Seq(x: FluidStack)) if x.getFluid == Fluids.protein => addAllRecipes()
case ("item", Seq(IStackBlock(x))) if x == Fluids.protein.getBlock => addAllRecipes()
case ("Liquifier", _) => addAllRecipes()
}
@@ -50,7 +50,7 @@ class MutagenProducerHandler extends BaseRecipeHandler(5, 13) {
override def loadCraftingRecipes(outputId: String, results: AnyRef*): Unit = {
Some(outputId, results) collect {
case ("liquid", Seq(x: FluidStack)) if x.fluidID == Fluids.mutagen.getID => addAllRecipes()
case ("liquid", Seq(x: FluidStack)) if x.getFluid == Fluids.mutagen => addAllRecipes()
case ("item", Seq(IStackBlock(x))) if x == Fluids.mutagen.getBlock => addAllRecipes()
case ("MutagenProducer", _) => addAllRecipes()
}
@@ -52,7 +52,7 @@ class MutatronHandler extends BaseRecipeHandler(5, 13) {
case 2 => root.templateAsIndividual(mutation.getTemplate)
}
individual.analyze()
return (root, slot) match {
(root, slot) match {
case (bees: IBeeRoot, 0) => bees.getMemberStack(individual, EnumBeeType.PRINCESS.ordinal())
case (bees: IBeeRoot, 1) => bees.getMemberStack(individual, EnumBeeType.DRONE.ordinal())
case (bees: IBeeRoot, 2) => bees.getMemberStack(individual, EnumBeeType.QUEEN.ordinal())
@@ -77,7 +77,7 @@ class MutatronHandler extends BaseRecipeHandler(5, 13) {
override def loadUsageRecipes(outputId: String, results: AnyRef*): Unit = {
Some(outputId, results) collect {
case ("liquid", Seq(x: FluidStack)) if x.fluidID == Fluids.mutagen.getID => addAllRecipes()
case ("liquid", Seq(x: FluidStack)) if x.getFluid == Fluids.mutagen => addAllRecipes()
case ("item", Seq(IStackBlock(x))) if x == Fluids.mutagen.getBlock => addAllRecipes()
case ("item", Seq(IStack(x))) if x == Items.labware => addAllRecipes()
case ("item", Seq(x: ItemStack)) =>
@@ -60,8 +60,8 @@ class ReplicatorHandler extends BaseRecipeHandler(5, 13) {
override def loadUsageRecipes(outputId: String, results: AnyRef*): Unit = {
Some(outputId, results) collect {
case ("liquid", Seq(x: FluidStack)) if x.fluidID == Fluids.dna.getID => addAllRecipes()
case ("liquid", Seq(x: FluidStack)) if x.fluidID == Fluids.protein.getID => addAllRecipes()
case ("liquid", Seq(x: FluidStack)) if x.getFluid == Fluids.dna => addAllRecipes()
case ("liquid", Seq(x: FluidStack)) if x.getFluid == Fluids.protein => addAllRecipes()
case ("item", Seq(x: ItemStack)) if x.getItem == GeneTemplate && GeneTemplate.isComplete(x) => addRecipe(x)
case ("Replicator", _) => addAllRecipes()
}