From a7026134e037ad969d176e52240b377b468738d0 Mon Sep 17 00:00:00 2001 From: Jitse Boonstra Date: Thu, 21 Feb 2019 22:47:12 +0100 Subject: [PATCH] Added more reminders. --- .../java/net/jitse/npclib/api/wrapper/GameProfileWrapper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commons/src/main/java/net/jitse/npclib/api/wrapper/GameProfileWrapper.java b/commons/src/main/java/net/jitse/npclib/api/wrapper/GameProfileWrapper.java index 24b81aa..48c17a2 100644 --- a/commons/src/main/java/net/jitse/npclib/api/wrapper/GameProfileWrapper.java +++ b/commons/src/main/java/net/jitse/npclib/api/wrapper/GameProfileWrapper.java @@ -18,7 +18,7 @@ public class GameProfileWrapper { // TODO: Add this class to the v1_7_R4 module of NPCLib. - // This doesn't seem to work well with modified versions of Spigot (see issue #13). + // TODO: This doesn't seem to work well with modified versions of Spigot (see issue #12). private final boolean is1_7 = Bukkit.getBukkitVersion().contains("1.7"); private final Class gameProfileClazz = Reflection.getClass((is1_7 ? "net.minecraft.util." : "") + "com.mojang.authlib.GameProfile"); @@ -41,6 +41,7 @@ public class GameProfileWrapper { propertyMapClazz); Object propertyMap = propertyMapGetter.get(gameProfile); + // TODO: Won't work on 1.7.10 (as Guava also changed package location). // Add our new property to the property map. Reflection.getMethod(ForwardingMultimap.class, "put", Object.class, Object.class) .invoke(propertyMap, "textures", property);