Skip to content

Commit

Permalink
fix inverted field creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Timmeey86 committed Jan 22, 2024
1 parent 51e15f6 commit 0034d68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="79">
<author>Farmsim Tim (timmeey86)</author>
<version>1.0.0.4</version>
<version>1.0.0.5</version>
<title>
<en>Conservation Agriculture</en>
<de>Konservierende Landwirschaft</de>
Expand Down Expand Up @@ -57,6 +57,9 @@ Special thanks to Matthias, FS Gentleman and Cookie Cat for help and ideas provi
Changelog:
v1.0.0.5:
- Fixed an issue where seeder field creation would work the wrong way round
v1.0.0.4:
- Fixed an error which would occur when precision farming was not in the mod folder
- Renamed "set/getLimitToField" to "set/getLimitSeederToField" to reduce likelyhood of mod conflicts
Expand Down Expand Up @@ -116,6 +119,9 @@ Besonderen Dank an Matthias, FS Gentleman und Cookie Cat für Tips und Ideen, du
Changelog:
v1.0.0.5:
- Fehler behoben, durch den die Felderzeugung mit Direktsaatmaschinen falsch herum funktionierte
v1.0.0.4:
- Fehler behoben, der auftrat, wenn Precision Farming nicht im Mod Ordner war
- Method "set/getLimitToField" nach "set/getLimitSeederToField" umbenannt, um die Wahrscheinlichkeit für Mod Konflikte zu reduzieren
Expand Down
2 changes: 1 addition & 1 deletion scripts/specializations/SeederFertilizerSpecialization.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function SeederFertilizerSpecialization:processSowingMachineArea(superFunc, work

if not skipSpecialization then
-- In case of direct seeders/planters, create fields where necessary if that feature is turned on
if g_currentMission.conservationAgricultureSettings.directSeederFieldCreationIsEnabled and basegameSpec.useDirectPlanting and spec ~= nil and spec.workAreaParameters.limitToField then
if g_currentMission.conservationAgricultureSettings.directSeederFieldCreationIsEnabled and basegameSpec.useDirectPlanting and spec ~= nil and not spec.workAreaParameters.limitToField then
SeederFertilizerSpecialization:createFieldArea(workArea)
end

Expand Down

0 comments on commit 0034d68

Please sign in to comment.