mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-20 20:12:28 +00:00
Fix wrong class check
This commit is contained in:
1 parent
404df5f1ee
commit
bbc7701893
1 file changed
+1
-1
@@ -171,7 +171,7 @@ public abstract class AbstractConfigFile implements Serializable {
|
||||
Object remote = field.get(other);
|
||||
|
||||
// is this a subclass that contains entries itself?
|
||||
if(field.getClass().isAnnotationPresent(ConfigSerializable.class)) {
|
||||
if(field.getType().isAnnotationPresent(ConfigSerializable.class)) {
|
||||
sync(remote, original);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user