improved ref
This commit is contained in:
parent
f6da4781e7
commit
03bf00a43d
@ -70,7 +70,7 @@ public class SimpleReflection {
|
||||
}
|
||||
Field field = fields.get(fieldName);
|
||||
if (value == null) {
|
||||
TLogger.getGlobalLogger().error("Field Not Found: " + nmsClass.getName());
|
||||
return;
|
||||
}
|
||||
try {
|
||||
field.set(instance, value);
|
||||
@ -86,7 +86,7 @@ public class SimpleReflection {
|
||||
}
|
||||
Field field = fields.get(fieldName);
|
||||
if (field == null) {
|
||||
TLogger.getGlobalLogger().error("Field Not Found: " + nmsClass.getName());
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return field.get(instance);
|
||||
@ -103,7 +103,7 @@ public class SimpleReflection {
|
||||
}
|
||||
Field field = fields.get(fieldName);
|
||||
if (field == null) {
|
||||
TLogger.getGlobalLogger().error("Field Not Found: " + nmsClass.getName());
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return (T) field.get(instance);
|
||||
|
Loading…
Reference in New Issue
Block a user