diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt index 6bcd6dcb4..e69a53d31 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt @@ -223,7 +223,9 @@ object SkyHanniConfigSearchResetCommand { val className = obj.getClassName() if (!classFilter(className)) continue val objectName = obj.getObjectName() - if (obj !is Runnable && objectName.startsWith(className) && (objectName.startsWith("at.hannibal2.skyhanni.config.features.") || + if (obj !is Runnable && + objectName.startsWith(className) && + (objectName.startsWith("at.hannibal2.skyhanni.config.features.") || objectName.startsWith("at.hannibal2.skyhanni.config.storage.Storage")) ) { "<category>" @@ -275,7 +277,14 @@ object SkyHanniConfigSearchResetCommand { val newObj = field.makeAccessible().get(obj) map[fieldName] = newObj @Suppress("ComplexCondition") - if (newObj != null && newObj !is Boolean && newObj !is String && newObj !is Long && newObj !is Int && newObj !is Double && newObj !is Position && !newObj.javaClass.isEnum) { + if (newObj != null && + newObj !is Boolean && + newObj !is String && + newObj !is Long && + newObj !is Int && + newObj !is Double && + newObj !is Position && + !newObj.javaClass.isEnum) { map.putAll(loadAllFields(fieldName, newObj, depth + 1)) } } |