From 5412e231437d90d4fe45dab89bb5757211735e02 Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Wed, 24 Apr 2019 11:11:11 +1000 Subject: $ Fixed the GT Proxy getter returning bad fields on the wrong side. (Server/Client) % Minor work on the Tree Farm. --- src/Java/gtPlusPlus/core/util/reflect/ReflectionUtils.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/Java/gtPlusPlus/core') diff --git a/src/Java/gtPlusPlus/core/util/reflect/ReflectionUtils.java b/src/Java/gtPlusPlus/core/util/reflect/ReflectionUtils.java index 722a4f3ff7..ef55792c63 100644 --- a/src/Java/gtPlusPlus/core/util/reflect/ReflectionUtils.java +++ b/src/Java/gtPlusPlus/core/util/reflect/ReflectionUtils.java @@ -463,13 +463,11 @@ public class ReflectionUtils { * therefore no more risk of code throwing NoClassDefFoundException. */ private static boolean isClassPresent(final String className) { - try { - Class.forName(className); - return true; - } catch (final Throwable ex) { - // Class or one of its dependencies is not present... - return false; + if (getClass(className) != null) { + return true; } + // Class or one of its dependencies is not present... + return false; } @Deprecated -- cgit