Skip to content

Commit

Permalink
implemented jss2a98aj#1
Browse files Browse the repository at this point in the history
  • Loading branch information
TCLProject committed Aug 21, 2022
1 parent a0667b1 commit 490210c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/am2/preloader/AM2PreloaderContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public String getSetupClass(){

@Override
public void injectData(Map<String, Object> data){
if (((String)data.get("coremodList")).contains("DragonAPIASMHandler")){
if ((data.get("coremodList").toString()).contains("DragonAPIASMHandler")){
LogHelper.info("Core: Located DragonAPI in list of coremods");
foundDragonAPI = true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/am2/preloader/BytecodeTransformers.java
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ private byte[] alterS1EPacketRemoveEntityEffect(byte[] bytes, boolean is_obfusca
InsnList new_if = new InsnList();
new_if.add(new VarInsnNode(Opcodes.ALOAD, 1));
new_if.add(new MethodInsnNode(Opcodes.INVOKEVIRTUAL, method1_searchinstruction_owner.getVal(is_obfuscated), method1_checkinstruction_function, method1_checkinstruction_desc, false));
new_if.add(new IntInsnNode(Opcodes.BIPUSH, 8));
new_if.add(new IntInsnNode(Opcodes.BIPUSH, Integer.BYTES));
LabelNode elseLabel = new LabelNode();
new_if.add(new JumpInsnNode(Opcodes.IF_ICMPNE, elseLabel));
new_if.add(new VarInsnNode(Opcodes.ALOAD, 0));
Expand Down

0 comments on commit 490210c

Please sign in to comment.