Closed TropicalShadow closed 1 year ago
PR your suggestion maybe
PR your suggestion maybe
I was going to but as there are many different ways to resolve this issue I couldn’t figure out which was the best, so I thought the repo owner may have more knowledge and is able to choose the correct result.
Turns out this was fixed in 723cb52!
This isn't a major issue, but I found a issue while converting an Anvil world it threw an error
Unexpected exception thrown: java.lang.NumberFormatException: For input string: "mca"
I found that it was trying to read
r.0.0.mca.2710657221739100675.backup
This line here reads the last two items in the array... which from the backup file is ["mca", "2710657221739100675"]My suggestion to fix it would be Replace
val args = it.nameWithoutExtension.split(".").takeLast(2)
withval args = Regex("(-?\\d+).(-?\\d+)").find(it.nameWithoutExtension)?.groupValues?.drop(0)
val args = it.nameWithoutExtension.split(".").slice(1..2)