mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-12 03:59:06 +00:00
Update debugger to display private fields
This commit is contained in:
parent
b2000e7e22
commit
bb223ab505
1 changed files with 2 additions and 1 deletions
|
@ -1845,8 +1845,9 @@ public class GeneralMethods {
|
||||||
for (final ClassPath.ClassInfo info : ClassPath.from(loader).getTopLevelClasses()) {
|
for (final ClassPath.ClassInfo info : ClassPath.from(loader).getTopLevelClasses()) {
|
||||||
if (info.getName().startsWith("com.projectkorra.")) {
|
if (info.getName().startsWith("com.projectkorra.")) {
|
||||||
final Class<?> clazz = info.load();
|
final Class<?> clazz = info.load();
|
||||||
for (Field field : clazz.getFields()) {
|
for (Field field : clazz.getDeclaredFields()) {
|
||||||
String simpleName = clazz.getSimpleName();
|
String simpleName = clazz.getSimpleName();
|
||||||
|
field.setAccessible(true);
|
||||||
try {
|
try {
|
||||||
Object obj = field.get(null);
|
Object obj = field.get(null);
|
||||||
if (obj instanceof Collection) {
|
if (obj instanceof Collection) {
|
||||||
|
|
Loading…
Reference in a new issue