Fix compatibility with older ProtocolLib versions (for 1.7)

because of the missing getMethodAcccessorOrNull method
This commit is contained in:
games647 committed 2016-09-03 10:21:42 +02:00
1 parent e495f70ccd
commit b660951e1e
2 files changed
+2 -4

No files matched your search

@@ -23,8 +23,7 @@ public class LoginSkinApplyListener implements Listener {
private static final Class<?> GAME_PROFILE = MinecraftReflection.getGameProfileClass();
private static final MethodAccessor GET_PROPERTIES = Accessors.getMethodAcccessorOrNull(
GAME_PROFILE, "getProperties");
private static final MethodAccessor GET_PROPERTIES = Accessors.getMethodAccessor(GAME_PROFILE, "getProperties");
private final FastLoginBukkit plugin;