Skip to content

Commit

Permalink
Small debug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Sep 22, 2023
1 parent 99aa69f commit 4e150aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/ai/AIDriveStrategyShovelSiloLoader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -431,18 +431,18 @@ function AIDriveStrategyShovelSiloLoader:isValidTrailer(trailer, trailerToIgnore
return false
end
if trailer.rootVehicle and not AIUtil.isStopped(trailer.rootVehicle) then
debug("is not stopped!", CpUtil.getName(trailer))
debug("is not stopped!")
return false
end
if trailerToIgnore and table.hasElement(trailerToIgnore, trailer) then
debug("will be ignored!", CpUtil.getName(trailer))
debug("will be ignored!")
return false
end
local canLoad, fillUnitIndex, fillType, exactFillRootNode =
ImplementUtil.getCanLoadTo(trailer, self.shovelImplement,
nil, debug)
if not canLoad or exactFillRootNode == nil then
debug("can't be used!", CpUtil.getName(trailer))
debug("can't be used!")
return false
end
return true, { fillUnitIndex = fillUnitIndex,
Expand Down

0 comments on commit 4e150aa

Please sign in to comment.