aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/replaymod/gradle/remap
diff options
context:
space:
mode:
authorJonas Herzig <me@johni0702.de>2019-04-29 20:11:59 +0200
committerJonas Herzig <me@johni0702.de>2019-04-29 20:11:59 +0200
commita9724e3546b7696a299080d98c8216b9c88dcf96 (patch)
treeeb985227489eb75a16801c771faf35518347d121 /src/main/java/com/replaymod/gradle/remap
parent626a2983f14aff02fe61231bee6d04fb47a27b44 (diff)
downloadRemap-a9724e3546b7696a299080d98c8216b9c88dcf96.tar.gz
Remap-a9724e3546b7696a299080d98c8216b9c88dcf96.tar.bz2
Remap-a9724e3546b7696a299080d98c8216b9c88dcf96.zip
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.
Diffstat (limited to 'src/main/java/com/replaymod/gradle/remap')
-rw-r--r--src/main/java/com/replaymod/gradle/remap/Transformer.java5
1 files changed, 0 insertions, 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) {