Skip to content

Commit

Permalink
Correct the fallback method for retrieving WatchableObjects.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadnk committed Jul 10, 2013
1 parent 1000378 commit f212562
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -18,7 +18,7 @@
package com.comphenix.protocol.utility;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.DataOutput;
import java.lang.reflect.Array;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
Expand Down Expand Up @@ -797,7 +797,7 @@ public static Class<?> getWatchableObjectClass() {
Method selected = FuzzyReflection.fromClass(getDataWatcherClass(), true).
getMethod(FuzzyMethodContract.newBuilder().
requireModifier(Modifier.STATIC).
parameterSuperOf(DataOutputStream.class, 0).
parameterDerivedOf(DataOutput.class, 0).
parameterMatches(getMinecraftObjectMatcher(), 1).
build());

Expand Down

0 comments on commit f212562

Please sign in to comment.