Skip to content

Commit

Permalink
fix: uncoloured to coloured bundled cable recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed Feb 6, 2022
1 parent 44d1d4d commit 667b26c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"replace": false,
"values": [
"projectred-transmission:neutral_bundled_wire",
"projectred-transmission:white_bundled_wire",
"projectred-transmission:orange_bundled_wire",
"projectred-transmission:magenta_bundled_wire",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"replace": false,
"values": [
"projectred-transmission:neutral_framed_bundled_wire",
"projectred-transmission:white_framed_bundled_wire",
"projectred-transmission:orange_framed_bundled_wire",
"projectred-transmission:magenta_framed_bundled_wire",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ object TransmissionContent {
itemInsulatedBlackWire.get
)

lazy val bundledWires = List(
lazy val colouredBundledWires = List(
itemBundledWhiteWire.get,
itemBundledOrangeWire.get,
itemBundledMagentaWire.get,
Expand Down Expand Up @@ -166,7 +166,7 @@ object TransmissionContent {
itemFramedInsulatedBlackWire.get
)

lazy val framedBundledWires = List(
lazy val framedColouredBundledWires = List(
itemFramedBundledWhiteWire.get,
itemFramedBundledOrangeWire.get,
itemFramedBundledMagentaWire.get,
Expand Down Expand Up @@ -413,6 +413,7 @@ private class ItemTags(gen: DataGenerator, fileHelper:ExistingFileHelper) extend
.add(itemInsulatedBlackWire)

tag(tagItemBundledWire)
.add(itemBundledNeutralWire)
.add(itemBundledWhiteWire)
.add(itemBundledOrangeWire)
.add(itemBundledMagentaWire)
Expand Down Expand Up @@ -449,6 +450,7 @@ private class ItemTags(gen: DataGenerator, fileHelper:ExistingFileHelper) extend
.add(itemFramedInsulatedBlackWire)

tag(tagItemBundledFramedWire)
.add(itemFramedBundledNeutralWire)
.add(itemFramedBundledWhiteWire)
.add(itemFramedBundledOrangeWire)
.add(itemFramedBundledMagentaWire)
Expand Down Expand Up @@ -502,7 +504,7 @@ private class Recipes(gen: DataGenerator) extends RecipeProvider(gen) {
.patternLine("WWW")
.patternLine("SWS")

for (w <- bundledWires) {
for (w <- colouredBundledWires) {
shapelessRecipe(w, 1, new ResourceLocation(w.getRegistryName + "_re_color"))
.addIngredient(tagItemBundledWire)
.addIngredient(ItemTags.bind(w.wireType.getColour.getDyeTagName))
Expand Down Expand Up @@ -544,11 +546,11 @@ private class Recipes(gen: DataGenerator) extends RecipeProvider(gen) {
.addIngredient(ItemTags.bind(w.wireType.getColour.getDyeTagName))
}

for (i <- bundledWires.indices) {
val w = framedBundledWires(i);
for (i <- colouredBundledWires.indices) {
val w = framedColouredBundledWires(i);
shapedRecipe(w)
.key('S', ForgeItemTags.RODS_WOODEN)
.key('I', bundledWires(i))
.key('I', colouredBundledWires(i))
.patternLine("SSS")
.patternLine("SIS")
.patternLine("SSS")
Expand Down

0 comments on commit 667b26c

Please sign in to comment.