Null classes are bad umm kay.
This commit is contained in:
parent
15aa825d30
commit
ea936d3b72
2 changed files with 4 additions and 1 deletions
|
@ -60,7 +60,7 @@ public class ASMIntegration implements IClassTransformer
|
||||||
@Override
|
@Override
|
||||||
public byte[] transform(String name, String transformedName, byte[] basicClass)
|
public byte[] transform(String name, String transformedName, byte[] basicClass)
|
||||||
{
|
{
|
||||||
if ( transformedName.startsWith( "appeng.transformer" ) )
|
if ( basicClass == null || transformedName.startsWith( "appeng.transformer" ) )
|
||||||
return basicClass;
|
return basicClass;
|
||||||
|
|
||||||
if ( transformedName.startsWith( "appeng." ) )
|
if ( transformedName.startsWith( "appeng." ) )
|
||||||
|
|
|
@ -33,6 +33,9 @@ public class ASMTweaker implements IClassTransformer
|
||||||
@Override
|
@Override
|
||||||
public byte[] transform(String name, String transformedName, byte[] basicClass)
|
public byte[] transform(String name, String transformedName, byte[] basicClass)
|
||||||
{
|
{
|
||||||
|
if ( basicClass == null )
|
||||||
|
return basicClass;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if ( transformedName != null && privateToPublicMethods.containsKey( transformedName ) )
|
if ( transformedName != null && privateToPublicMethods.containsKey( transformedName ) )
|
||||||
|
|
Loading…
Reference in a new issue