Skip to content

Commit

Permalink
Blacklist MFR plugin from Preloader. Closes #222.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunstrike committed Oct 6, 2013
1 parent 821666e commit a6d01d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/tconstruct/preloader/ASMInterfaceRepair.java
Expand Up @@ -58,6 +58,11 @@ private boolean isInternal( String path )
|| path.startsWith( "net/minecraft/" );
}

private boolean isBlacklisted( String path )
{
return path.startsWith( "tconstruct/plugins/minefactoryreloaded/" );
}

private boolean isClassAvailable( String inf )
{
if ( APIInterfaces.containsKey( inf ) )
Expand Down Expand Up @@ -100,7 +105,7 @@ public void visitClassType(String name) {

@Override
public void visitTypeVariable(String className) {
if ( isInternal( className ) ) return;
if ( isInternal( className ) || isBlacklisted( className ) ) return;
isAvailable = isAvailable && asmTransformer.isClassAvailable( className );
log( className + " is " + ( isAvailable ? "available" : "not available" ) );
}
Expand Down Expand Up @@ -135,7 +140,7 @@ private boolean verifyAPI(ClassNode cn)
{
String inf = i.next();

if ( isInternal( inf ) )
if ( isInternal( inf ) || isBlacklisted( inf ) )
continue;

boolean isAvailable = isClassAvailable( inf );
Expand Down

0 comments on commit a6d01d8

Please sign in to comment.