Skip to content

Commit 68f6e52

Browse files
authored
Fix off by one in for Hatch Registration (#2711)
1 parent ae65dfe commit 68f6e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/gregtech/common/metatileentities/MetaTileEntities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ public static void init() {
785785
// MISC MTE's START: IDs 1150-2000
786786

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

0 commit comments

Comments
 (0)