beet-observer 0.6.2__py3-none-any.whl → 0.7.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
beet_observer/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
- __version__ = "0.6.2"
1
+ __version__ = "0.7.1"
2
2
 
3
3
  from .plugin import *
@@ -144,6 +144,11 @@ def gen_dp_overlays(
144
144
  }
145
145
  )
146
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
+
147
152
  # save overlay entries in pack.mcmeta
148
153
  if len(entries) > 0:
149
154
  ctx.data.mcmeta.data.update({"overlays": {"entries": entries}})
@@ -72,6 +72,11 @@ def gen_rp_overlays(
72
72
  }
73
73
  )
74
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
+
75
80
  # save overlay entries in pack.mcmeta
76
81
  if len(entries) > 0:
77
82
  ctx.assets.mcmeta.data.update({"overlays": {"entries": entries}})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: beet-observer
3
- Version: 0.6.2
3
+ Version: 0.7.1
4
4
  Summary: A beet plugin to automatically generate overlays from previous datapacks
5
5
  License: MIT
6
6
  Author: BPR02
@@ -0,0 +1,8 @@
1
+ beet_observer/__init__.py,sha256=1XpNKUm-Hk_yCgkuoqDBACiacdZ1uf9I3C1WAHMucuE,45
2
+ beet_observer/data_pack.py,sha256=YIkMDaR1j6FU-ukC5UibCaweRQ-TEvd_w1sZZTbE5Ww,9972
3
+ beet_observer/plugin.py,sha256=mtGBtJNCiUHkSGiAoRl7li0oIlZBQ-cuDS91bubDaPs,2835
4
+ beet_observer/resource_pack.py,sha256=anQw0EdCF780j9rVMM1ycQAqQzEFpg_8I_h6T5Xoguo,6210
5
+ beet_observer-0.7.1.dist-info/LICENSE,sha256=oBbP6j7sgG9darFSRZxV7iO8yPR1aZiDspSK3mcLpXI,1062
6
+ beet_observer-0.7.1.dist-info/METADATA,sha256=_c2AXX_DL1MmeoqYuYMHpg4xWWTkhKkRuwtlid4-2zc,674
7
+ beet_observer-0.7.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
8
+ beet_observer-0.7.1.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- beet_observer/__init__.py,sha256=1bdBi_zNLpip86iamyYYtbrA-WFsbBnrNhqbSx3DP5M,45
2
- beet_observer/data_pack.py,sha256=eENwNdgtMfqOXrXCbejnpCPCHca0dJadGLOimalzylQ,9754
3
- beet_observer/plugin.py,sha256=mtGBtJNCiUHkSGiAoRl7li0oIlZBQ-cuDS91bubDaPs,2835
4
- beet_observer/resource_pack.py,sha256=ZO6Ye-_17IAx5rvsht6Gd3IY10ZtevoOX20mZwxzWnk,5984
5
- beet_observer-0.6.2.dist-info/LICENSE,sha256=oBbP6j7sgG9darFSRZxV7iO8yPR1aZiDspSK3mcLpXI,1062
6
- beet_observer-0.6.2.dist-info/METADATA,sha256=WMIP8MCT3gM03CSueffQgPcQmwS2eTiE_u4-LirnDN0,674
7
- beet_observer-0.6.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
8
- beet_observer-0.6.2.dist-info/RECORD,,