Fixed backwards compatibility with WrappedDataValue (#2172)

This commit is contained in:
armagidon-exception 2023-02-16 05:31:26 +03:00 committed by GitHub
parent 0a41cf9353
commit 365bb66d2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ import com.comphenix.protocol.wrappers.WrappedDataWatcher.Serializer;
*/
public class WrappedDataValue extends AbstractWrapper {
private static final Class<?> HANDLE_TYPE = MinecraftReflection.getMinecraftClass("network.syncher.DataWatcher$b", "network.syncher.SynchedEntityData$DataValue");
private static final Class<?> HANDLE_TYPE = MinecraftReflection.getNullableNMS("network.syncher.DataWatcher$b", "network.syncher.SynchedEntityData$DataValue");
private static ConstructorAccessor constructor;