forked from openrs2/openrs2
parent
cdf7ea435e
commit
ded582dd06
@ -0,0 +1,20 @@ |
||||
package dev.openrs2.deob.transform; |
||||
|
||||
import dev.openrs2.asm.Transformer; |
||||
import org.objectweb.asm.Opcodes; |
||||
import org.objectweb.asm.tree.ClassNode; |
||||
|
||||
public final class CanvasTransformer extends Transformer { |
||||
@Override |
||||
public void transformClass(ClassNode clazz) { |
||||
if (!"java/awt/Canvas".equals(clazz.superName)) { |
||||
return; |
||||
} |
||||
|
||||
if ((clazz.access & Opcodes.ACC_FINAL) == 0) { |
||||
return; |
||||
} |
||||
|
||||
clazz.interfaces.remove("java/awt/event/FocusListener"); |
||||
} |
||||
} |
Loading…
Reference in new issue