diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-04-24 11:11:11 +1000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-04-24 11:11:11 +1000 |
commit | 5412e231437d90d4fe45dab89bb5757211735e02 (patch) | |
tree | b203a67a6798af1f3c3a690921a3c3d0bf34ffe0 /src/Java/gtPlusPlus/core | |
parent | c72ea28733af1ea5fae10117b27155c90870850f (diff) | |
download | GT5-Unofficial-5412e231437d90d4fe45dab89bb5757211735e02.tar.gz GT5-Unofficial-5412e231437d90d4fe45dab89bb5757211735e02.tar.bz2 GT5-Unofficial-5412e231437d90d4fe45dab89bb5757211735e02.zip |
$ Fixed the GT Proxy getter returning bad fields on the wrong side. (Server/Client)
% Minor work on the Tree Farm.
Diffstat (limited to 'src/Java/gtPlusPlus/core')
-rw-r--r-- | src/Java/gtPlusPlus/core/util/reflect/ReflectionUtils.java | 10 |
1 files changed, 4 insertions, 6 deletions
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 |