Skip to content

Commit 4e1f5a1

Browse files
committed
fix: raise NotImplementedError for v1.18+
1 parent f0b8229 commit 4e1f5a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

structurecleaner/remove_tags.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
from multiprocessing import Pool
1111
from pathlib import Path
1212
from typing import Set, Tuple
13-
from structurecleaner.constants import VANILLA_STRUCTURES, SEP
13+
from structurecleaner.constants import (
14+
VANILLA_STRUCTURES, SEP, NEW_DATA_VERSION)
1415
from 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):

0 commit comments

Comments
 (0)