Crash Enhancement Tweak!
This commit is contained in:
parent
c72b272da9
commit
b2d240b6cc
2 changed files with 17 additions and 10 deletions
|
@ -80,8 +80,7 @@ public class AppEng
|
|||
IMCHandlers.put( "add-p2p-attunement-" + type.name().replace( '_', '-' ).toLowerCase(), new IMCP2PAttunement() );
|
||||
}
|
||||
|
||||
for (CrashInfo ci : CrashInfo.values())
|
||||
FMLCommonHandler.instance().registerCrashCallable( new CrashEnhancement( ci ) );
|
||||
FMLCommonHandler.instance().registerCrashCallable( new CrashEnhancement( CrashInfo.MOD_VERSION ) );
|
||||
}
|
||||
|
||||
public boolean isIntegrationEnabled(String Name)
|
||||
|
@ -157,6 +156,7 @@ public class AppEng
|
|||
|
||||
Registration.instance.PostInit( event );
|
||||
IntegrationRegistry.instance.postinit();
|
||||
FMLCommonHandler.instance().registerCrashCallable( new CrashEnhancement( CrashInfo.INTEGRATION ) );
|
||||
|
||||
CommonHelper.proxy.postinit();
|
||||
AEConfig.instance.save();
|
||||
|
|
|
@ -9,8 +9,21 @@ public class CrashEnhancement implements ICrashCallable
|
|||
|
||||
final CrashInfo Output;
|
||||
|
||||
final String ModVersion = AEConfig.CHANNEL + " " + AEConfig.VERSION + " for Forge " + // WHAT?
|
||||
net.minecraftforge.common.ForgeVersion.majorVersion + "." // majorVersion
|
||||
+ net.minecraftforge.common.ForgeVersion.minorVersion + "." // minorVersion
|
||||
+ net.minecraftforge.common.ForgeVersion.revisionVersion + "." // revisionVersion
|
||||
+ net.minecraftforge.common.ForgeVersion.buildVersion;
|
||||
|
||||
final String IntegrationInfo;
|
||||
|
||||
public CrashEnhancement(CrashInfo ci) {
|
||||
Output = ci;
|
||||
|
||||
if ( IntegrationRegistry.instance != null )
|
||||
IntegrationInfo = IntegrationRegistry.instance.getStatus();
|
||||
else
|
||||
IntegrationInfo = "N/A";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -19,15 +32,9 @@ public class CrashEnhancement implements ICrashCallable
|
|||
switch (Output)
|
||||
{
|
||||
case MOD_VERSION:
|
||||
return AEConfig.CHANNEL + " " + AEConfig.VERSION + " for Forge "
|
||||
+ net.minecraftforge.common.ForgeVersion.majorVersion + "." // majorVersion
|
||||
+ net.minecraftforge.common.ForgeVersion.minorVersion + "." // minorVersion
|
||||
+ net.minecraftforge.common.ForgeVersion.revisionVersion + "." // revisionVersion
|
||||
+ net.minecraftforge.common.ForgeVersion.buildVersion;
|
||||
return ModVersion;
|
||||
case INTEGRATION:
|
||||
if ( IntegrationRegistry.instance == null )
|
||||
return "N/A";
|
||||
return IntegrationRegistry.instance.getStatus();
|
||||
return IntegrationInfo;
|
||||
}
|
||||
|
||||
return "UNKNOWN_VALUE";
|
||||
|
|
Loading…
Reference in a new issue