From bb223ab5050303252a16c52319a25b45c4309646 Mon Sep 17 00:00:00 2001 From: nathank33 Date: Mon, 9 Nov 2015 13:25:33 -0800 Subject: [PATCH] Update debugger to display private fields --- src/com/projectkorra/projectkorra/GeneralMethods.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/projectkorra/projectkorra/GeneralMethods.java b/src/com/projectkorra/projectkorra/GeneralMethods.java index dbcd6dc7..d43fddd5 100644 --- a/src/com/projectkorra/projectkorra/GeneralMethods.java +++ b/src/com/projectkorra/projectkorra/GeneralMethods.java @@ -1845,8 +1845,9 @@ public class GeneralMethods { for (final ClassPath.ClassInfo info : ClassPath.from(loader).getTopLevelClasses()) { if (info.getName().startsWith("com.projectkorra.")) { final Class clazz = info.load(); - for (Field field : clazz.getFields()) { + for (Field field : clazz.getDeclaredFields()) { String simpleName = clazz.getSimpleName(); + field.setAccessible(true); try { Object obj = field.get(null); if (obj instanceof Collection) {