Skip to content

Commit

Permalink
Fix using MV muffler in EBF JEI preview (#2298)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Dec 16, 2023
1 parent 4690f2c commit 9faa5c0
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public class MetaTileEntities {
// UHV
public static final MetaTileEntityRotorHolder[] ROTOR_HOLDER = new MetaTileEntityRotorHolder[6]; // HV, EV, IV, LuV,
// ZPM, UV
public static final MetaTileEntityMufflerHatch[] MUFFLER_HATCH = new MetaTileEntityMufflerHatch[GTValues.UV]; // LV-UV
public static final MetaTileEntityMufflerHatch[] MUFFLER_HATCH = new MetaTileEntityMufflerHatch[GTValues.UV + 1]; // LV-UV
public static final MetaTileEntityFusionReactor[] FUSION_REACTOR = new MetaTileEntityFusionReactor[3];
public static final MetaTileEntityQuantumChest[] QUANTUM_CHEST = new MetaTileEntityQuantumChest[10];
public static final MetaTileEntityQuantumTank[] QUANTUM_TANK = new MetaTileEntityQuantumTank[10];
Expand Down Expand Up @@ -1062,12 +1062,13 @@ public static void init() {
CLEANING_MAINTENANCE_HATCH = registerMetaTileEntity(1401,
new MetaTileEntityCleaningMaintenanceHatch(gregtechId("maintenance_hatch_cleanroom_auto")));

// Muffler Hatches, IDs 1657-
for (int i = 0; i < MUFFLER_HATCH.length; i++) {
String voltageName = GTValues.VN[i + 1].toLowerCase();
MUFFLER_HATCH[i] = new MetaTileEntityMufflerHatch(gregtechId("muffler_hatch." + voltageName), i + 1);
// Muffler Hatches, IDs 1657-1664
for (int i = 0; i < MUFFLER_HATCH.length - 1; i++) {
int tier = i + 1;
String voltageName = GTValues.VN[tier].toLowerCase();
MUFFLER_HATCH[tier] = new MetaTileEntityMufflerHatch(gregtechId("muffler_hatch." + voltageName), tier);

registerMetaTileEntity(1657 + i, MUFFLER_HATCH[i]);
registerMetaTileEntity(1657 + i, MUFFLER_HATCH[tier]);
}

CLIPBOARD_TILE = registerMetaTileEntity(1666, new MetaTileEntityClipboard(gregtechId("clipboard")));
Expand Down

0 comments on commit 9faa5c0

Please sign in to comment.