aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2019-04-24 11:11:11 +1000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2019-04-24 11:11:11 +1000
commit5412e231437d90d4fe45dab89bb5757211735e02 (patch)
treeb203a67a6798af1f3c3a690921a3c3d0bf34ffe0 /src/Java/gtPlusPlus/core
parentc72ea28733af1ea5fae10117b27155c90870850f (diff)
downloadGT5-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.java10
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