Skip to content

Commit

Permalink
feat: 1.5.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePixelbrain committed Mar 15, 2024
1 parent ca9480c commit 92936cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@

public interface IClassTransformer
{
public byte[] transform(String name, byte[] bytes);
public byte[] transform(String name, byte[] bytes); // 1.4
public byte[] transform(String name, String transformedName, byte[] bytes); // 1.5
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
public class SIBTransformerRelauncher implements IClassTransformer {
@Override
public byte[] transform(String name, byte[] bytes) {
if (Patches.getPatchModuleForClass(name) == null) return bytes;
return this.transform(null, name, bytes);
}

@Override
public byte[] transform(String name, String transformedName, byte[] bytes) {
if (Patches.getPatchModuleForClass(transformedName) == null) return bytes;

return Patches.patchClass(bytes, name, false);
return Patches.patchClass(bytes, transformedName, false);
}
}
4 changes: 3 additions & 1 deletion serializationisbad.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@
"logisticspipes.network.packets.routingdebug.RoutingUpdateTargetResponse",
"logisticspipes.network.packets.GuiArgumentPacket"
],
"classAllowlist": [],
"classAllowlist": [
"I"
],
"packageAllowlist": [
"logisticspipes"
]
Expand Down

0 comments on commit 92936cd

Please sign in to comment.