Deliver claimed item rewards through planetary profiles
This commit is contained in:
parent
5c8361b920
commit
54aa55b2a1
1 changed files with 7 additions and 5 deletions
|
|
@ -53,10 +53,11 @@ class GoldenPathMerge implements Opcodes {
|
|||
hook.add(new VarInsnNode(ALOAD, 0));
|
||||
loadField(old, hook, "api", JARVIS + "SharedGameApi");
|
||||
loadField(old, hook, "exchangeInventory", JARVIS + "ExchangeInventory");
|
||||
loadField(old, hook, "serverKey", "java/lang/String");
|
||||
hook.add(call(JARVIS + "LetoQuestRewards", "register",
|
||||
"(" + PLUGIN + "L" + JARVIS + "SharedGameApi;L" + JARVIS + "ExchangeInventory;)V"));
|
||||
"(" + PLUGIN + "L" + JARVIS + "SharedGameApi;L" + JARVIS + "ExchangeInventory;Ljava/lang/String;)V"));
|
||||
enable.instructions.insert(fieldWrite(enable, old.name, "questObservations", PUTFIELD), hook);
|
||||
enable.maxStack = Math.max(enable.maxStack, 3);
|
||||
enable.maxStack = Math.max(enable.maxStack, 4);
|
||||
}
|
||||
default -> throw new IllegalArgumentException("Unexpected quest graft target " + old.name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff