diff --git a/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/utilities/common/ClassUtilities.kt b/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/utilities/common/ClassUtilities.kt index f9a5cf167..1ac871919 100644 --- a/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/utilities/common/ClassUtilities.kt +++ b/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/utilities/common/ClassUtilities.kt @@ -43,9 +43,7 @@ private const val FILE = "file:" * @author Griefed */ @Throws(JarAccessException::class) -fun Class.source( - tempDir: File = File(tmpDir) -): File { +fun Class.source(tempDir: File = File(tmpDir)): File { val clazz = "$simpleName.class" val classResource: URL = getResource(clazz) ?: throw JarAccessException("Class resource is null") val url = classResource.toString()