From 1f1ce2d996095fc4e5b259c0c7f64874e2e4686e Mon Sep 17 00:00:00 2001 From: chochem <40274384+chochem@users.noreply.github.com> Date: Sat, 9 Dec 2023 16:15:14 +0000 Subject: Fixes for overflow valve, wireless charger, and transmission components recipes and ids (#794) * Fix all the tiers in recipes including for wireless charger and overflow valve * fix transmission components --- .../gregtech/common/items/MetaGeneratedGregtechItems.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/common') diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java index e8690b155b..defa3d558b 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java @@ -272,21 +272,22 @@ public class MetaGeneratedGregtechItems extends Gregtech_MetaItem_X32 { "Wood's Glass Lens", "Allows UV & IF to pass through, blocks visible light spectrums")); - int aStartID = 141; + // 141 now unused, was the ulv transmission component + int aStartID = 142; GregtechItemList[] aTransParts = new GregtechItemList[] { GregtechItemList.TransmissionComponent_LV, GregtechItemList.TransmissionComponent_MV, GregtechItemList.TransmissionComponent_HV, GregtechItemList.TransmissionComponent_EV, GregtechItemList.TransmissionComponent_IV, GregtechItemList.TransmissionComponent_LuV, GregtechItemList.TransmissionComponent_ZPM, GregtechItemList.TransmissionComponent_UV, GregtechItemList.TransmissionComponent_UHV, }; - for (int aIndex = 0; aIndex < aTransParts.length; aIndex++) { - aTransParts[aIndex].set( + for (int tier = 1; tier < aTransParts.length + 1; tier++) { + aTransParts[tier - 1].set( this.addItem( aStartID++, - "Transmission Component (" + GT_Values.VN[aIndex] + ")", + "Transmission Component (" + GT_Values.VN[tier] + ")", "", - getTcAspectStack(TC_Aspects.ELECTRUM, aIndex), - getTcAspectStack(TC_Aspects.MACHINA, aIndex), - getTcAspectStack(TC_Aspects.MAGNETO, aIndex))); + getTcAspectStack(TC_Aspects.ELECTRUM, tier), + getTcAspectStack(TC_Aspects.MACHINA, tier), + getTcAspectStack(TC_Aspects.MAGNETO, tier))); } // Distillus Chip -- cgit