Skip to content

Commit

Permalink
Fix Java World Names in Logging (#31)
Browse files Browse the repository at this point in the history
Fixes a minor issue where Java world names would always show up as "/" in the logs.
  • Loading branch information
Kaiede authored Feb 9, 2022
1 parent e923528 commit 417f447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Bedrockifier/Model/World.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public struct World {
throw WorldError.invalidLevelArchive
}

guard let worldName = URL(fileURLWithPath: levelDat.path).pathComponents.first else {
guard let worldName = NSString(string: levelDat.path).pathComponents.first else {
throw WorldError.missingLevelName
}

Expand Down

0 comments on commit 417f447

Please sign in to comment.