Skip to content

Commit

Permalink
JavaScript syntax highlighting...
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadiboo committed Feb 20, 2019
1 parent 116514f commit 9a32bc7
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ function redirectMethodTemp(instructions) {
// instructions.insertBefore(NEW_CompiledChunk, tempInstructionList);

instructions.insertBefore(NEW_CompiledChunk, new VarInsnNode(ALOAD, ALOAD_this)); // this
print("Injected instruction ALOAD this);
print("Injected instruction ALOAD this");
instructions.insertBefore(NEW_CompiledChunk, new VarInsnNode(FLOAD, FLOAD_x)); // x
print("Injected instruction FLOAD x);
print("Injected instruction FLOAD x");
instructions.insertBefore(NEW_CompiledChunk, new VarInsnNode(FLOAD, FLOAD_y)); // y
print("Injected instruction FLOAD y);
print("Injected instruction FLOAD y");
instructions.insertBefore(NEW_CompiledChunk, new VarInsnNode(FLOAD, FLOAD_z)); // z
print("Injected instruction FLOAD z);
print("Injected instruction FLOAD z");
instructions.insertBefore(NEW_CompiledChunk, new VarInsnNode(ALOAD, ALOAD_generator)); // generator
print("Injected instruction ALOAD generator);
print("Injected instruction ALOAD generator");
instructions.insertBefore(NEW_CompiledChunk,
new MethodInsnNode(
//int opcode
Expand All @@ -168,7 +168,7 @@ function redirectMethodTemp(instructions) {
);
print("Injected instruction INVOKESTATIC io/github/cadiboo/renderchunkrebuildchunkhooks/hooks/OverwriteHookTemp rebuildChunk (Lnet/minecraft/client/renderer/chunk/RenderChunk;FFFLnet/minecraft/client/renderer/chunk/ChunkRenderTask;)V false");
instructions.insertBefore(NEW_CompiledChunk, new InsnNode(RETURN));
print("Injected instruction RETURN);
print("Injected instruction RETURN");

print("Successfully inserted instructions!");

Expand Down

0 comments on commit 9a32bc7

Please sign in to comment.