Skip to content

Commit 485da54

Browse files
committed
Fixed location bound directory creating file instead of dir
1 parent dd26ada commit 485da54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/kotlin/com/lambda/util/FolderRegister.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ object FolderRegister : Loadable {
9696
val path = resolve(
9797
hostName.sanitizeForFilename()
9898
).resolve(
99-
mc.world?.dimensionKey?.value?.path?.sanitizeForFilename() ?: "unknown"
99+
mc.world?.dimensionKey?.value?.path?.sanitizeForFilename() ?: "unknown" // TODO: Change with utils when merged to master
100100
)
101-
path.createIfNotExists()
101+
path.mkdirs()
102102
return path
103103
}
104104
}

0 commit comments

Comments
 (0)