maps4fs 1.8.251__py3-none-any.whl → 1.8.252__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,18 +173,22 @@ class GRLE(ImageComponent, XMLComponent):
173
173
  def _add_farmlands(self) -> None:
174
174
  """Adds farmlands to the InfoLayer PNG file."""
175
175
  farmlands = []
176
+
177
+ fields = self.get_infolayer_data(Parameters.TEXTURES, Parameters.FIELDS)
178
+ if fields:
179
+ self.logger.debug("Found %s fields in textures info layer.", len(fields))
180
+ farmlands.extend(fields)
181
+
176
182
  farmyards = self.get_infolayer_data(Parameters.TEXTURES, Parameters.FARMYARDS)
177
183
  if farmyards and self.map.grle_settings.add_farmyards:
178
184
  farmlands.extend(farmyards)
179
185
  self.logger.debug("Found %s farmyards in textures info layer.", len(farmyards))
180
186
 
181
- fields = self.get_infolayer_data(Parameters.TEXTURES, Parameters.FIELDS)
182
- if not fields:
183
- self.logger.debug("Fields data not found in textures info layer.")
187
+ if not farmlands:
188
+ self.logger.warning(
189
+ "No farmlands was obtained from fields or farmyards, skipping the processing."
190
+ )
184
191
  return
185
- farmlands.extend(fields)
186
-
187
- self.logger.debug("Found %s fields in textures info layer.", len(fields))
188
192
 
189
193
  info_layer_farmlands_path = self.game.get_farmlands_path(self.map_directory)
190
194
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maps4fs
3
- Version: 1.8.251
3
+ Version: 1.8.252
4
4
  Summary: Generate map templates for Farming Simulator from real places.
5
5
  Author-email: iwatkot <iwatkot@gmail.com>
6
6
  License: MIT License
@@ -10,7 +10,7 @@ maps4fs/generator/statistics.py,sha256=aynS3zbAtiwnU_YLKHPTiiaKW98_suvQUhy1SGBA6
10
10
  maps4fs/generator/component/__init__.py,sha256=s01yVVVi8R2xxNvflu2D6wTd9I_g73AMM2x7vAC7GX4,490
11
11
  maps4fs/generator/component/background.py,sha256=hsyNmHgi9NUcp3SoSawJeCDJY3tJNDMwmb_x1ovi0Fg,22852
12
12
  maps4fs/generator/component/config.py,sha256=RitKgFDZPzjA1fi8GcEi1na75qqaueUvpcITHjBvCXc,3674
13
- maps4fs/generator/component/grle.py,sha256=KlNbbYY4oyFfB_0qTInrweBTyLUW0koSSpqclkRw-Lk,19381
13
+ maps4fs/generator/component/grle.py,sha256=99CFheRn2aDuE041iZj2usmh5spKSryKg3L848jVWdg,19475
14
14
  maps4fs/generator/component/i3d.py,sha256=iVXYYGzDpSp5J7vAo_LFnDA8GDAy43Y6aUIf7yP_ZTI,23101
15
15
  maps4fs/generator/component/layer.py,sha256=hbTBMLamKOWv_MXbnk-LjLyNV91jPsF33UEc17rBZCM,6185
16
16
  maps4fs/generator/component/satellite.py,sha256=oZBHjP_QY0ik1-Vk7JqMS__zIG8ffw2voeozB7-HUQc,4946
@@ -54,8 +54,8 @@ maps4fs/toolbox/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,4
54
54
  maps4fs/toolbox/background.py,sha256=RclEqxEWLbMxuEkkegQP8jybzugwQ1_R3rdfDe0s21U,2104
55
55
  maps4fs/toolbox/custom_osm.py,sha256=X6ZlPqiOhNjkmdD_qVroIfdOl9Rb90cDwVSLDVYgx80,1892
56
56
  maps4fs/toolbox/dem.py,sha256=z9IPFNmYbjiigb3t02ZenI3Mo8odd19c5MZbjDEovTo,3525
57
- maps4fs-1.8.251.dist-info/licenses/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
58
- maps4fs-1.8.251.dist-info/METADATA,sha256=UtavrpUygqDfTGLz7iH0Yz2QDhh_xKWRpC4JxqTmkt4,47443
59
- maps4fs-1.8.251.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
60
- maps4fs-1.8.251.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
61
- maps4fs-1.8.251.dist-info/RECORD,,
57
+ maps4fs-1.8.252.dist-info/licenses/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
58
+ maps4fs-1.8.252.dist-info/METADATA,sha256=mzBKk-bH_1vcnlmLvPM9WRrvKIpmaPU2mhDcCzAxSSQ,47443
59
+ maps4fs-1.8.252.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
60
+ maps4fs-1.8.252.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
61
+ maps4fs-1.8.252.dist-info/RECORD,,