Update litematic version check

This commit is contained in:
ZacSharp
2022-10-13 23:36:38 +02:00
committed by GitHub
parent 063842edc4
commit 98763271a4

View File

@@ -78,11 +78,10 @@ public enum DefaultSchematicFormats implements ISchematicFormat {
int version = nbt.getInt("Version");
switch (version) {
case 4: //1.12
throw new UnsupportedOperationException("This litematic Version is too old.");
case 5: //1.13-1.17
return new LitematicaSchematic(nbt, false);
throw new UnsupportedOperationException("This litematic Version is too old.");
case 6: //1.18+
throw new UnsupportedOperationException("This litematic Version is too new.");
return new LitematicaSchematic(nbt, false);
default:
throw new UnsupportedOperationException("Unsuported Version of a Litematica Schematic");
}