From 67578ff1eb68c6df87ea50268c4ac2258f28812f Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 8 Oct 2024 22:41:20 +0200 Subject: code cleanup --- .../skyhanni/test/SkyHanniConfigSearchResetCommand.kt | 13 +++++++++++-- 1 file 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")) ) { "" @@ -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)) } } -- cgit