From a9724e3546b7696a299080d98c8216b9c88dcf96 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Mon, 29 Apr 2019 20:11:59 +0200 Subject: Fix double remapping of method invocations E.g. `isKeyDown` was mapped to `isPressed` and then again to `wasPressed` Not even sure why that extra call was there in the first place. --- src/main/java/com/replaymod/gradle/remap/Transformer.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/com/replaymod/gradle/remap/Transformer.java b/src/main/java/com/replaymod/gradle/remap/Transformer.java index 0cb9afe..2d41083 100644 --- a/src/main/java/com/replaymod/gradle/remap/Transformer.java +++ b/src/main/java/com/replaymod/gradle/remap/Transformer.java @@ -471,11 +471,6 @@ class Transformer { return visitName(node.resolveBinding(), node); } - @Override - public boolean visit(MethodInvocation node) { - return visitName(node.resolveMethodBinding(), node.getName()); - } - private boolean visitName(IBinding binding, SimpleName node) { String mapped; if (binding instanceof IVariableBinding) { -- cgit