Skip to content

Commit 6dbfd2e

Browse files
More reorganization
1 parent 31b989f commit 6dbfd2e

File tree

8 files changed

+5
-7
lines changed

8 files changed

+5
-7
lines changed

Alidade/Extensions/MinecraftStructure+Name.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,11 @@ extension MinecraftStructure {
6666
/// Creates a structure from a localized string.
6767
/// - Parameter string: The string to parse and match against.
6868
init?(string: String) {
69-
for structure in Self.allCases {
70-
if structure.name.localizedLowercase == string.localizedLowercase { // swiftlint:disable:this for_where
71-
self = structure
72-
return
73-
}
69+
guard let structure = Self.allCases.first(where: { $0.name.localizedLowercase == string.localizedLowercase })
70+
else {
71+
return nil
7472
}
75-
return nil
73+
self = structure
7674
}
7775

7876
/// The pin color associated with the structure.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Alidade/Views/RedWindowContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// CartographyUnifiedView.swift
2+
// RedWindowContentView.swift
33
// MCMaps
44
//
55
// Created by Marquis Kurt on 14-06-2025.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)