This commit is contained in:
parent
86f63326b6
commit
41a5049e04
2 changed files with 1 additions and 1 deletions
BIN
Zutil.jar
BIN
Zutil.jar
Binary file not shown.
|
|
@ -390,7 +390,7 @@ public class Templator {
|
|||
else {
|
||||
// Using a loop as the direct lookup throws a exception if no field was found
|
||||
// So this is probably a bit faster
|
||||
for (Field field : obj.getClass().getFields()) { // Only look for public fields
|
||||
for (Field field : obj.getClass().getDeclaredFields()) { // Only look for public fields
|
||||
if (field.getName().equals(attrib)) {
|
||||
field.setAccessible(true);
|
||||
return field.get(obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue