From 7346883f015f91c31450c2c6e8553ac9c09faabe Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sat, 10 Aug 2024 19:07:01 +0700 Subject: [PATCH] Intern created pathes --- .../kotlin/ru/dbotthepony/kstarbound/util/AssetPathStack.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/util/AssetPathStack.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/util/AssetPathStack.kt index 24ad1f54..cd96c13d 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/util/AssetPathStack.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/util/AssetPathStack.kt @@ -58,6 +58,6 @@ object AssetPathStack { if (path.isNotEmpty() && path[0] == '/') return path - return if (base.endsWith('/')) "$base$path" else "$base/$path" + return if (base.endsWith('/')) "$base$path".sbIntern() else "$base/$path".sbIntern() } }