beet-observer 0.2.0__tar.gz → 0.2.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {beet_observer-0.2.0 → beet_observer-0.2.1}/PKG-INFO +1 -1
- {beet_observer-0.2.0 → beet_observer-0.2.1}/beet_observer/__init__.py +1 -1
- {beet_observer-0.2.0 → beet_observer-0.2.1}/beet_observer/data_pack.py +3 -2
- {beet_observer-0.2.0 → beet_observer-0.2.1}/pyproject.toml +1 -1
- {beet_observer-0.2.0 → beet_observer-0.2.1}/LICENSE +0 -0
- {beet_observer-0.2.0 → beet_observer-0.2.1}/README.md +0 -0
- {beet_observer-0.2.0 → beet_observer-0.2.1}/beet_observer/plugin.py +0 -0
- {beet_observer-0.2.0 → beet_observer-0.2.1}/beet_observer/resource_pack.py +0 -0
@@ -65,7 +65,7 @@ def gen_dp_overlays(ctx: Context, ctx_overlay: Context, overlay_dir: str) -> Non
|
|
65
65
|
for overlay in ctx.data.overlays:
|
66
66
|
# check if it's the top-level overlay
|
67
67
|
if overlay == ctx.meta["observer"]["default_dir_dp"]:
|
68
|
-
# delete pack.mcmeta from overlay (
|
68
|
+
# delete pack.mcmeta from overlay (required for tests)
|
69
69
|
default_dir = ctx.meta["observer"]["default_dir_dp"]
|
70
70
|
if ctx.data.overlays[default_dir].mcmeta:
|
71
71
|
del ctx.data.overlays[default_dir].mcmeta
|
@@ -91,7 +91,8 @@ def gen_dp_overlays(ctx: Context, ctx_overlay: Context, overlay_dir: str) -> Non
|
|
91
91
|
)
|
92
92
|
|
93
93
|
# save overlay entries in pack.mcmeta
|
94
|
-
|
94
|
+
if len(entries) > 0:
|
95
|
+
ctx.data.mcmeta.data.update({"overlays": {"entries": entries}})
|
95
96
|
|
96
97
|
|
97
98
|
def check_registry(
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|