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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: beet-observer
3
- Version: 0.6.1
3
+ Version: 0.6.2
4
4
  Summary: A beet plugin to automatically generate overlays from previous datapacks
5
5
  License: MIT
6
6
  Author: BPR02
@@ -1,3 +1,3 @@
1
- __version__ = "0.6.1"
1
+ __version__ = "0.6.2"
2
2
 
3
3
  from .plugin import *
@@ -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]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "beet-observer"
3
- version = "0.6.1"
3
+ version = "0.6.2"
4
4
  description = "A beet plugin to automatically generate overlays from previous datapacks"
5
5
  authors = ["BPR02 <dev@bpr02.com>"]
6
6
  license = "MIT"
File without changes
File without changes