File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1010from multiprocessing import Pool
1111from pathlib import Path
1212from typing import Set , Tuple
13- from structurecleaner .constants import VANILLA_STRUCTURES , SEP
13+ from structurecleaner .constants import (
14+ VANILLA_STRUCTURES , SEP , NEW_DATA_VERSION )
1415from structurecleaner .errors import (
1516 InvalidRegionFileError , InvalidFileNameError ,
1617 EmptyFileError ,)
@@ -66,6 +67,9 @@ def check_tag(_tag):
6667 data = region .chunk_data (chunk_x , chunk_z )
6768 data_copy = region .chunk_data (chunk_x , chunk_z )
6869
70+ if int (data ["DataVersion" ].value ) > NEW_DATA_VERSION :
71+ raise NotImplementedError ("Version 1.18 is not supported yet." )
72+
6973 if hasattr (data ["Level" ]["Structures" ]["Starts" ], 'tags' ):
7074 for tag in data ["Level" ]["Structures" ]["Starts" ].tags :
7175 if check_tag (tag ):
You can’t perform that action at this time.
0 commit comments