Skip to content

Commit

Permalink
Makes sure the start position is checked before starting
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Jun 22, 2024
1 parent 863332d commit e99ff60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/ai/jobs/CpAIJobCombineUnloader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ function CpAIJobCombineUnloader:validate(farmId)
if not AIJobDeliver.getIsAvailableForVehicle(self, vehicle) then
return false, g_i18n:getText("CP_error_giants_unloader_not_available")
end
isValid, message = self.cpJobParameters.startPosition:validate()
end
if not isValid then
return isValid, errorMessage
Expand Down Expand Up @@ -291,9 +292,6 @@ function CpAIJobCombineUnloader:setupGiantsUnloaderData(vehicle)
return
end
self.supportedFillTypes = unloadingStation:getAISupportedFillTypes()



end

function CpAIJobCombineUnloader:getNextTaskIndex(isSkipTask)
Expand Down

0 comments on commit e99ff60

Please sign in to comment.