Skip to content

Commit ed2caeb

Browse files
misodeEpyonProjects
authored andcommitted
Add min_format and max_format to overlays
1 parent 99e2a19 commit ed2caeb

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

gm4/plugins/backwards.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def backport(pack: Pack[Any], format: int, run: Callable[[str, NamespaceFile], N
6969
if new_resource:
7070
overlay = pack.overlays[f"backport_{format}"]
7171
overlay.supported_formats = { "min_inclusive": 0, "max_inclusive": format }
72+
overlay.min_format = 0
73+
overlay.max_format = format
7274
overlay[path] = new_resource
7375

7476

gm4_cooler_caves/beet.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ data_pack:
88
- formats:
99
min_inclusive: 0
1010
max_inclusive: 81
11+
min_format: 0
12+
max_format: 81
1113
directory: backport_81
1214

1315
pipeline:

resource_pack/beet.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ resource_pack:
1010
- formats:
1111
min_inclusive: 0
1212
max_inclusive: 63
13+
min_format: 0
14+
max_format: 63
1315
directory: backport_63
1416

1517
pipeline:

0 commit comments

Comments
 (0)