File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1093,7 +1093,6 @@ def __bool__(self) -> bool:
1093
1093
return (
1094
1094
any (self .values ())
1095
1095
or self .extra .keys () > {"pack.mcmeta" }
1096
- or (self .overlay_parent is not None and self .supported_formats is not None )
1097
1096
or (self .overlay_parent is None and bool (self .overlays ))
1098
1097
)
1099
1098
Original file line number Diff line number Diff line change @@ -603,6 +603,7 @@ def test_overlay():
603
603
b = p .overlays .setdefault (
604
604
"b" , supported_formats = {"min_inclusive" : 16 , "max_inclusive" : 17 }
605
605
)
606
+ assert not b
606
607
assert b .supported_formats == {"min_inclusive" : 16 , "max_inclusive" : 17 }
607
608
assert p .mcmeta .data == {
608
609
"pack" : {"pack_format" : 18 , "description" : "" },
@@ -627,6 +628,7 @@ def test_overlay():
627
628
c ["demo:thing" ] = Function ()
628
629
p .overlays ["c" ] = c
629
630
631
+ assert c
630
632
assert c .overlay_name == "c"
631
633
assert c .overlay_parent is p
632
634
assert dict (p .list_files ()) == {
You can’t perform that action at this time.
0 commit comments