Fix MacResizeTransformer when it is used from the deobfuscator

The bundler does not prefix class names with the library name, the
deobfuscator does.

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 4 years ago
parent c276610a6d
commit b337698106
  1. 1
      bundler/src/main/java/dev/openrs2/bundler/transform/MacResizeTransformer.kt

@ -27,6 +27,7 @@ public class MacResizeTransformer : Transformer() {
val getstatic = match[0] as FieldInsnNode val getstatic = match[0] as FieldInsnNode
if ( if (
getstatic.owner == "loader" || getstatic.owner == "loader" ||
getstatic.owner == "loader!loader" ||
getstatic.owner == clazz.name || getstatic.owner == clazz.name ||
getstatic.desc != "Ljava/lang/String;" getstatic.desc != "Ljava/lang/String;"
) { ) {

Loading…
Cancel
Save