Add getters for before-ly-hooked fields

This commit is contained in:
Lucas
2019-06-09 23:40:48 +02:00
parent 6e497d3a4b
commit fb63ba500a

View File

@@ -271,15 +271,14 @@ public class InjectHook
if (hookInfo.getter instanceof Integer)
{
ins.getInstructions().add(new LDC(ins, (int) hookInfo.getter));
ins.getInstructions().add(new IMul(ins));
ins.getInstructions().add(idx++, new LDC(ins, (int) hookInfo.getter));
ins.getInstructions().add(idx++,new IMul(ins));
}
else
{
ins.getInstructions().add(new LDC(ins, (long) hookInfo.getter));
ins.getInstructions().add(new LMul(ins));
ins.getInstructions().add(idx++, new LDC(ins, (long) hookInfo.getter));
ins.getInstructions().add(idx++, new LMul(ins));
}
}
if (!value.type.equals(methodArgumentType))
{