beet-observer 0.6.1__tar.gz → 0.6.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {beet_observer-0.6.1 → beet_observer-0.6.2}/PKG-INFO +1 -1
- {beet_observer-0.6.1 → beet_observer-0.6.2}/beet_observer/__init__.py +1 -1
- {beet_observer-0.6.1 → beet_observer-0.6.2}/beet_observer/data_pack.py +5 -1
- {beet_observer-0.6.1 → beet_observer-0.6.2}/pyproject.toml +1 -1
- {beet_observer-0.6.1 → beet_observer-0.6.2}/LICENSE +0 -0
- {beet_observer-0.6.1 → beet_observer-0.6.2}/README.md +0 -0
- {beet_observer-0.6.1 → beet_observer-0.6.2}/beet_observer/plugin.py +0 -0
- {beet_observer-0.6.1 → beet_observer-0.6.2}/beet_observer/resource_pack.py +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import Any
|
2
2
|
|
3
3
|
import beet.contrib.worldgen as wg
|
4
|
-
from beet import Context, NamespaceProxy
|
4
|
+
from beet import Context, NamespaceProxy, Structure
|
5
5
|
|
6
6
|
|
7
7
|
def gen_dp_overlays(
|
@@ -214,6 +214,10 @@ def gen_registry_overlay(
|
|
214
214
|
else:
|
215
215
|
# check if files are exactly the same
|
216
216
|
try:
|
217
|
+
if isinstance(registry[name], Structure):
|
218
|
+
registry_overlay[name].data["DataVersion"] = registry[name].data[
|
219
|
+
"DataVersion"
|
220
|
+
]
|
217
221
|
if registry[name].data != registry_overlay[name].data:
|
218
222
|
# move file from overlay pack to overlay in build pack
|
219
223
|
ctx.data.overlays[overlay_dir][name] = registry_overlay[name]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|