mirror of https://github.com/cabaletta/baritone
forgot to adjust version check
This commit is contained in:
parent
c2a857f4d6
commit
44c1438541
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue