forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -140,12 +140,13 @@ fun Route.configureSchematic() {
|
||||
if (schem.size() == 1) schem = schem.first() as CompoundTag
|
||||
|
||||
val version = schem.let {
|
||||
if (it.contains("Materials"))
|
||||
return@let SchematicFormat.MCEDIT
|
||||
else if (it.contains("Blocks"))
|
||||
return@let SchematicFormat.SPONGE_V3
|
||||
else
|
||||
return@let SchematicFormat.SPONGE_V2
|
||||
if (it.contains("Materials")) {
|
||||
SchematicFormat.MCEDIT
|
||||
} else if (it.contains("Blocks")) {
|
||||
SchematicFormat.SPONGE_V3
|
||||
} else {
|
||||
SchematicFormat.SPONGE_V2
|
||||
}
|
||||
}
|
||||
|
||||
if (version == SchematicFormat.SPONGE_V3) {
|
||||
|
||||
Reference in New Issue
Block a user