Skip to content

Commit

Permalink
Should fix #223
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Dec 29, 2021
1 parent d9cfb9e commit 248a4c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/ai/jobs/AIJobFieldWorkCp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,12 @@ function AIJobFieldWorkCp:validate(farmId)
self.fieldPolygon = g_fieldScanner:findContour(tx, tz)
if not self.fieldPolygon then
self.hasValidPosition = false
return false, g_i18n:getText("CP_error_no_course")
return false, g_i18n:getText("CP_error_not_on_field")
end

local vehicle = self.vehicleParameter:getVehicle()

if vehicle and not vehicle:hasCpCourse() then
return false, g_i18n:getText("CP_error_not_on_field")
return false, g_i18n:getText("CP_error_no_course")
end
return true, ''
end
Expand Down

0 comments on commit 248a4c7

Please sign in to comment.