mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 18:34:56 -04:00
load correct minosoft meta version
That mostly fixes entity data in versions <1.13
This commit is contained in:
parent
593be2d925
commit
e6ffbbf4b3
@ -75,15 +75,18 @@ object MinosoftMeta {
|
||||
|
||||
for (entry in this) {
|
||||
if (entry.version == "_") {
|
||||
if (previous != null) continue
|
||||
previous = entry
|
||||
continue
|
||||
}
|
||||
val entryVersion = Versions[entry.version] ?: throw IllegalArgumentException("Unknown meta version ${entry.version}")
|
||||
if (entryVersion > version) continue
|
||||
|
||||
if (previousVersion != null && previousVersion > entryVersion) {
|
||||
continue
|
||||
}
|
||||
previousVersion = entryVersion
|
||||
previous = entry
|
||||
}
|
||||
if (previous == null) return null
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user