From bd4352f0413f71d2e1c1913daf92f98215b26a57 Mon Sep 17 00:00:00 2001 From: Dan Mulloy Date: Tue, 12 Jul 2016 16:15:46 -0400 Subject: [PATCH] Fix cloning data watchers Addresses #224 --- .../protocol/wrappers/WrappedDataWatcher.java | 37 +++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/modules/API/src/main/java/com/comphenix/protocol/wrappers/WrappedDataWatcher.java b/modules/API/src/main/java/com/comphenix/protocol/wrappers/WrappedDataWatcher.java index c2ac604b..6b3b5250 100644 --- a/modules/API/src/main/java/com/comphenix/protocol/wrappers/WrappedDataWatcher.java +++ b/modules/API/src/main/java/com/comphenix/protocol/wrappers/WrappedDataWatcher.java @@ -56,8 +56,8 @@ public class WrappedDataWatcher extends AbstractWrapper implements Iterable HANDLE_TYPE = MinecraftReflection.getDataWatcherClass(); private static MethodAccessor GETTER = null; - public static MethodAccessor SETTER = null; - public static MethodAccessor REGISTER = null; + private static MethodAccessor SETTER = null; + private static MethodAccessor REGISTER = null; private static FieldAccessor ENTITY_DATA_FIELD = null; private static FieldAccessor ENTITY_FIELD = null; @@ -389,17 +389,20 @@ public class WrappedDataWatcher extends AbstractWrapper implements Iterable