mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2025-02-08 00:21:51 +01:00
Correct the fallback method for retrieving WatchableObjects.
This commit is contained in:
parent
1000378b78
commit
f2125623f6
@ -18,7 +18,7 @@
|
|||||||
package com.comphenix.protocol.utility;
|
package com.comphenix.protocol.utility;
|
||||||
|
|
||||||
import java.io.DataInputStream;
|
import java.io.DataInputStream;
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutput;
|
||||||
import java.lang.reflect.Array;
|
import java.lang.reflect.Array;
|
||||||
import java.lang.reflect.Constructor;
|
import java.lang.reflect.Constructor;
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
@ -797,7 +797,7 @@ public class MinecraftReflection {
|
|||||||
Method selected = FuzzyReflection.fromClass(getDataWatcherClass(), true).
|
Method selected = FuzzyReflection.fromClass(getDataWatcherClass(), true).
|
||||||
getMethod(FuzzyMethodContract.newBuilder().
|
getMethod(FuzzyMethodContract.newBuilder().
|
||||||
requireModifier(Modifier.STATIC).
|
requireModifier(Modifier.STATIC).
|
||||||
parameterSuperOf(DataOutputStream.class, 0).
|
parameterDerivedOf(DataOutput.class, 0).
|
||||||
parameterMatches(getMinecraftObjectMatcher(), 1).
|
parameterMatches(getMinecraftObjectMatcher(), 1).
|
||||||
build());
|
build());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user