diff --git a/legacyforge/src/main/java/cpw/mods/fml/relauncher/IClassTransformer.java b/legacyforge/src/main/java/cpw/mods/fml/relauncher/IClassTransformer.java index e39d916..78e1086 100644 --- a/legacyforge/src/main/java/cpw/mods/fml/relauncher/IClassTransformer.java +++ b/legacyforge/src/main/java/cpw/mods/fml/relauncher/IClassTransformer.java @@ -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 } diff --git a/legacyforge/src/main/java/io/dogboy/serializationisbad/legacyforge/SIBTransformerRelauncher.java b/legacyforge/src/main/java/io/dogboy/serializationisbad/legacyforge/SIBTransformerRelauncher.java index bf01df6..a49cd5e 100644 --- a/legacyforge/src/main/java/io/dogboy/serializationisbad/legacyforge/SIBTransformerRelauncher.java +++ b/legacyforge/src/main/java/io/dogboy/serializationisbad/legacyforge/SIBTransformerRelauncher.java @@ -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); } } diff --git a/serializationisbad.json b/serializationisbad.json index 0c1770d..1a0d1ac 100644 --- a/serializationisbad.json +++ b/serializationisbad.json @@ -256,7 +256,9 @@ "logisticspipes.network.packets.routingdebug.RoutingUpdateTargetResponse", "logisticspipes.network.packets.GuiArgumentPacket" ], - "classAllowlist": [], + "classAllowlist": [ + "I" + ], "packageAllowlist": [ "logisticspipes" ]