diff options
| author | miozune <miozune@gmail.com> | 2022-08-01 10:31:31 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-01 08:31:31 +0700 |
| commit | c2b74940dc9658373beadd7d2393077fc5210ea0 (patch) | |
| tree | 95d2988bb73aad53c8d1a169b7ab67216526e9a2 /src/main/java/gtPlusPlus/xmod/gregtech/registration | |
| parent | 5915d5ba06c6b71477e092f1e0938872bbcd16dd (diff) | |
| download | GT5-Unofficial-c2b74940dc9658373beadd7d2393077fc5210ea0.tar.gz GT5-Unofficial-c2b74940dc9658373beadd7d2393077fc5210ea0.tar.bz2 GT5-Unofficial-c2b74940dc9658373beadd7d2393077fc5210ea0.zip | |
Fix startup crash with latest GT (#258)
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/registration')
| -rw-r--r-- | src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java index b93933d088..3d2ca0b2bd 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java @@ -208,14 +208,13 @@ public class GregtechCustomHatches { private static void run4() { int aID = 31060; //41, "hatch.energy.tier.01", "LV Energy Hatch", 1 - Constructor aRTG = ReflectionUtils.getConstructor(GT_MetaTileEntity_Hatch_Energy_RTG.class, new Class[]{int.class, String.class, String.class, int.class, int.class}); - Object aHatch1 = ReflectionUtils.createNewInstanceFromConstructor(aRTG, new Object[]{aID++, "hatch.energy.rtg.tier.01", "RTG Power Unit [LV]", 1, 9}); - Object aHatch2 = ReflectionUtils.createNewInstanceFromConstructor(aRTG, new Object[]{aID++, "hatch.energy.rtg.tier.02", "RTG Power Unit [MV]", 2, 9}); - Object aHatch3 = ReflectionUtils.createNewInstanceFromConstructor(aRTG, new Object[]{aID++, "hatch.energy.rtg.tier.03", "RTG Power Unit [HV]", 3, 9}); - - GregtechItemList.Hatch_RTG_LV.set(((IMetaTileEntity) aHatch1).getStackForm(1L)); - GregtechItemList.Hatch_RTG_MV.set(((IMetaTileEntity) aHatch2).getStackForm(1L)); - GregtechItemList.Hatch_RTG_HV.set(((IMetaTileEntity) aHatch3).getStackForm(1L)); + GT_MetaTileEntity_Hatch_Energy_RTG aHatch1 = new GT_MetaTileEntity_Hatch_Energy_RTG(aID++, "hatch.energy.rtg.tier.01", "RTG Power Unit [LV]", 1, 9); + GT_MetaTileEntity_Hatch_Energy_RTG aHatch2 = new GT_MetaTileEntity_Hatch_Energy_RTG(aID++, "hatch.energy.rtg.tier.02", "RTG Power Unit [MV]", 2, 9); + GT_MetaTileEntity_Hatch_Energy_RTG aHatch3 = new GT_MetaTileEntity_Hatch_Energy_RTG(aID++, "hatch.energy.rtg.tier.03", "RTG Power Unit [HV]", 3, 9); + + GregtechItemList.Hatch_RTG_LV.set(aHatch1.getStackForm(1L)); + GregtechItemList.Hatch_RTG_MV.set(aHatch2.getStackForm(1L)); + GregtechItemList.Hatch_RTG_HV.set(aHatch3.getStackForm(1L)); } |
