mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 02:45:13 -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) {
|
for (entry in this) {
|
||||||
if (entry.version == "_") {
|
if (entry.version == "_") {
|
||||||
|
if (previous != null) continue
|
||||||
previous = entry
|
previous = entry
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
val entryVersion = Versions[entry.version] ?: throw IllegalArgumentException("Unknown meta version ${entry.version}")
|
val entryVersion = Versions[entry.version] ?: throw IllegalArgumentException("Unknown meta version ${entry.version}")
|
||||||
if (entryVersion > version) continue
|
if (entryVersion > version) continue
|
||||||
|
|
||||||
if (previousVersion != null && previousVersion > entryVersion) {
|
if (previousVersion != null && previousVersion > entryVersion) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
previousVersion = entryVersion
|
previousVersion = entryVersion
|
||||||
|
previous = entry
|
||||||
}
|
}
|
||||||
if (previous == null) return null
|
if (previous == null) return null
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user