Skip to content

Commit

Permalink
Fixed RenderComponentsTransformer not getting injected
Browse files Browse the repository at this point in the history
  • Loading branch information
kerbybit committed Sep 17, 2019
1 parent 7e83434 commit d1e7e9f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public void transform(ClassNode classNode, String name) {
AbstractInsnNode next = iterator.next();
if (next instanceof MethodInsnNode) {
MethodInsnNode methodInsnNode = (MethodInsnNode) next;
if (methodInsnNode.owner.equals("net/minecraft/util/IChatComponent")
&& (methodInsnNode.name.equals("getUnformattedTextForChat") || methodInsnNode.name.equals("func_150261_e"))
if ((methodInsnNode.owner.equals("net/minecraft/util/IChatComponent") || methodInsnNode.owner.equals("eu"))
&& (methodInsnNode.name.equals("getUnformattedTextForChat") || methodInsnNode.name.equals("e"))
&& methodInsnNode.desc.equals("()Ljava/lang/String;")) {
iterator.add(changeTextHook());
}
Expand Down

0 comments on commit d1e7e9f

Please sign in to comment.