Skip to content

Commit 32a95db

Browse files
committed
Remove the need to specify any mappings on 26.1+
1 parent bb30e13 commit 32a95db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/api/kotlin/xyz/wagyourtail/unimined/api/mapping/MappingsConfig.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ abstract class MappingsConfig<T: MappingsConfig<T>>(val project: Project, val mi
3535
}) {
3636

3737
private var innerDevNamespace: Namespace by FinalizeOnRead(LazyMutable {
38+
if (minecraft.minecraftData.mcVersionCompare("1.21.11", minecraft.version) <= 0) {
39+
return@LazyMutable Namespace("official")
40+
}
3841
namespaces.entries.firstOrNull { it.value }?.key ?: error("No \"Named\" namespace found for devNamespace, if this is correct, set devNamespace explicitly")
3942
})
4043

0 commit comments

Comments
 (0)