Fix EventTransformer throwing an NPE when transforming a class that doesn't exist. Closes #413
This commit is contained in:
parent
e11feec55f
commit
183b3e6316
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ public class EventTransformer implements IClassTransformer
|
|||
@Override
|
||||
public byte[] transform(String name, byte[] bytes)
|
||||
{
|
||||
if (name.equals("net.minecraftforge.event.Event") || name.startsWith("net.minecraft.") || name.indexOf('.') == -1)
|
||||
if (bytes == null || name.equals("net.minecraftforge.event.Event") || name.startsWith("net.minecraft.") || name.indexOf('.') == -1)
|
||||
{
|
||||
return bytes;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue