CoreMod Stuff.

This commit is contained in:
AlgorithmX2 2014-02-11 03:04:59 -06:00
parent b6bb1bea2e
commit 9513e7c99d
2 changed files with 12 additions and 2 deletions

View file

@ -452,7 +452,17 @@ public abstract class AEBaseGui extends GuiContainer
return true;
}
public void a(Slot s)
{
drawSlot( s );
}
public void func_146977_a(Slot s)
{
drawSlot( s );
}
public void drawSlot(Slot s)
{
if ( s instanceof SlotME )
{

View file

@ -48,11 +48,11 @@ public class AppEngASMTransformer implements IClassTransformer
}
// CALL VIRUAL!
if ( transformedName.equals( "net.minecraft.client.gui.inventory.GuiContainer" ) )
if ( name.equals( "bcd" ) || transformedName.equals( "net.minecraft.client.gui.inventory.GuiContainer" ) )
{
for (MethodNode mn : classNode.methods)
{
if ( mn.name.equals( "func_146977_a" ) )
if ( mn.name.equals( "func_146977_a" ) || mn.name.equals( "a" ) )
{
MethodNode newNode = new MethodNode( Opcodes.ACC_PUBLIC, "func_146977_a_original", mn.desc, mn.signature, new String[0] );
newNode.instructions.add( new VarInsnNode( Opcodes.ALOAD, 0 ) );