forgot to adjust version check

This commit is contained in:
rycbar0 2022-10-04 19:38:16 +02:00
parent c2a857f4d6
commit 44c1438541
1 changed files with 3 additions and 2 deletions

View File

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