This commit is contained in:
Ziver Koc 2015-06-03 15:14:20 +00:00
parent 86f63326b6
commit 41a5049e04
2 changed files with 1 additions and 1 deletions

BIN
Zutil.jar

Binary file not shown.

View file

@ -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);