diff options
| author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-10-24 12:54:34 +0100 |
|---|---|---|
| committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-10-24 12:54:34 +0100 |
| commit | 6dcd02dadeacc93d3aec7343ca320da0dd036e9b (patch) | |
| tree | 652183c03c8ca586513570605a60447c09c2d6d7 /src/Java/gtPlusPlus/xmod/galacticraft/util | |
| parent | f32d154550c102e32a24fcda5970b8119d9d97f2 (diff) | |
| download | GT5-Unofficial-6dcd02dadeacc93d3aec7343ca320da0dd036e9b.tar.gz GT5-Unofficial-6dcd02dadeacc93d3aec7343ca320da0dd036e9b.tar.bz2 GT5-Unofficial-6dcd02dadeacc93d3aec7343ca320da0dd036e9b.zip | |
+ Added 2 more planets to HD10180.
$ Fixed GC Packet Decoding ASM.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/galacticraft/util')
| -rw-r--r-- | src/Java/gtPlusPlus/xmod/galacticraft/util/GalacticUtils.java | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/xmod/galacticraft/util/GalacticUtils.java b/src/Java/gtPlusPlus/xmod/galacticraft/util/GalacticUtils.java index df8521be9d..94dc2d0cc0 100644 --- a/src/Java/gtPlusPlus/xmod/galacticraft/util/GalacticUtils.java +++ b/src/Java/gtPlusPlus/xmod/galacticraft/util/GalacticUtils.java @@ -4,6 +4,7 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import gregtech.api.enums.Materials; +import gtPlusPlus.api.objects.Logger; import gtPlusPlus.core.item.chemistry.RocketFuels; import gtPlusPlus.core.util.minecraft.FluidUtils; import gtPlusPlus.core.util.reflect.ReflectionUtils; @@ -51,7 +52,37 @@ public class GalacticUtils { aIFuelable = a5; getRocketTier = m1; getRocket = m2; - getBuggy = m3; + getBuggy = m3; + if (a1 != null && a2 != null && a3 != null && a4 != null && a5 != null && m1 != null && m2 != null && m3 != null) { + Logger.SPACE("Successfully relfected into 5 classes and 3 methods."); + } + else { + Logger.SPACE("Failed to relfect into Galacticraft classes and methods."); + if (a1 == null) { + Logger.SPACE("micdoodle8.mods.galacticraft.api.prefab.entity.EntityTieredRocket was null.."); + } + if (a2 == null) { + Logger.SPACE("micdoodle8.mods.galacticraft.core.tile.TileEntityLandingPad was null.."); + } + if (a3 == null) { + Logger.SPACE("micdoodle8.mods.galacticraft.core.tile.TileEntityBuggyFueler was null.."); + } + if (a4 == null) { + Logger.SPACE("micdoodle8.mods.galacticraft.api.entity.IDockable was null.."); + } + if (a5 == null) { + Logger.SPACE("micdoodle8.mods.galacticraft.api.entity.IFuelable was null.."); + } + if (m1 == null) { + Logger.SPACE("getRocketTier was null.."); + } + if (m2 == null) { + Logger.SPACE("getDockedEntity was null.."); + } + if (m3 == null) { + Logger.SPACE("getDockedEntity(buggy) was null.."); + } + } } @@ -108,7 +139,8 @@ public class GalacticUtils { return getValidFuelForTier(getRocketTier(aEntity)); } else { - return null; + Logger.SPACE("Failed to get valid rocket fuel for "+aEntity.getClass().getCanonicalName()); + return getValidFuelForTier(0); } } |
