Skip to content

Commit

Permalink
Fix off by one in for Hatch Registration (GregTechCEu#2711)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude authored Feb 3, 2025
1 parent ae65dfe commit 68f6e52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ public static void init() {
// MISC MTE's START: IDs 1150-2000

// Import/Export Buses/Hatches, IDs 1150-1209
endPos = GregTechAPI.isHighTier() ? ITEM_IMPORT_BUS.length : GTValues.UHV;
endPos = GregTechAPI.isHighTier() ? ITEM_IMPORT_BUS.length : GTValues.UHV + 1;
for (int i = 0; i < endPos; i++) {
String voltageName = GTValues.VN[i].toLowerCase();
ITEM_IMPORT_BUS[i] = new MetaTileEntityItemBus(gregtechId("item_bus.import." + voltageName), i, false);
Expand Down

0 comments on commit 68f6e52

Please sign in to comment.