beet-observer 0.7.0__tar.gz → 0.7.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {beet_observer-0.7.0 → beet_observer-0.7.1}/PKG-INFO +1 -1
- {beet_observer-0.7.0 → beet_observer-0.7.1}/beet_observer/__init__.py +1 -1
- {beet_observer-0.7.0 → beet_observer-0.7.1}/beet_observer/data_pack.py +5 -3
- {beet_observer-0.7.0 → beet_observer-0.7.1}/beet_observer/resource_pack.py +5 -3
- {beet_observer-0.7.0 → beet_observer-0.7.1}/pyproject.toml +1 -1
- {beet_observer-0.7.0 → beet_observer-0.7.1}/LICENSE +0 -0
- {beet_observer-0.7.0 → beet_observer-0.7.1}/README.md +0 -0
- {beet_observer-0.7.0 → beet_observer-0.7.1}/beet_observer/plugin.py +0 -0
@@ -110,9 +110,6 @@ def gen_dp_overlays(
|
|
110
110
|
for registry, registry_overlay in file_types:
|
111
111
|
check_registry(ctx, ctx_overlay, overlay_dir, registry, registry_overlay)
|
112
112
|
|
113
|
-
# add current overlays to pack
|
114
|
-
ctx.data.overlays.merge(ctx_overlay.data.overlays)
|
115
|
-
|
116
113
|
# get pack.mcmeta overlay entries
|
117
114
|
mcmeta: dict[str, dict[str, list[dict[str, Any]]]] = ctx.data.mcmeta.data.copy()
|
118
115
|
if "overlays" not in mcmeta:
|
@@ -147,6 +144,11 @@ def gen_dp_overlays(
|
|
147
144
|
}
|
148
145
|
)
|
149
146
|
|
147
|
+
# add current overlays to pack
|
148
|
+
ctx.data.overlays.merge(ctx_overlay.data.overlays)
|
149
|
+
if "overlays" in ctx_overlay.data.mcmeta.data:
|
150
|
+
entries.extend(ctx_overlay.data.mcmeta.data["overlays"]["entries"])
|
151
|
+
|
150
152
|
# save overlay entries in pack.mcmeta
|
151
153
|
if len(entries) > 0:
|
152
154
|
ctx.data.mcmeta.data.update({"overlays": {"entries": entries}})
|
@@ -38,9 +38,6 @@ def gen_rp_overlays(
|
|
38
38
|
for registry, registry_overlay in file_types:
|
39
39
|
check_registry(ctx, ctx_overlay, overlay_dir, registry, registry_overlay)
|
40
40
|
|
41
|
-
# add current overlays to pack
|
42
|
-
ctx.assets.overlays.merge(ctx_overlay.assets.overlays)
|
43
|
-
|
44
41
|
# get pack.mcmeta overlay entries
|
45
42
|
mcmeta: dict[str, dict[str, list[dict[str, Any]]]] = ctx.assets.mcmeta.data.copy()
|
46
43
|
if "overlays" not in mcmeta:
|
@@ -75,6 +72,11 @@ def gen_rp_overlays(
|
|
75
72
|
}
|
76
73
|
)
|
77
74
|
|
75
|
+
# add current overlays to pack
|
76
|
+
ctx.assets.overlays.merge(ctx_overlay.assets.overlays)
|
77
|
+
if "overlays" in ctx_overlay.assets.mcmeta.data:
|
78
|
+
entries.extend(ctx_overlay.assets.mcmeta.data["overlays"]["entries"])
|
79
|
+
|
78
80
|
# save overlay entries in pack.mcmeta
|
79
81
|
if len(entries) > 0:
|
80
82
|
ctx.assets.mcmeta.data.update({"overlays": {"entries": entries}})
|
File without changes
|
File without changes
|
File without changes
|