Skip to content

Commit 4f4f0e9

Browse files
committed
Changed :stopFieldworker() to also be called on the client
1 parent 4d33b00 commit 4f4f0e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/ai/tasks/CpAITaskFieldWork.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ function CpAITaskFieldWork:stop(wasJobStopped)
119119
cpSpec.driveStrategy:raiseControllerEvent(
120120
AIDriveStrategyCourse.onStopRefillingEvent)
121121
end
122+
self.vehicle:stopFieldWorker()
122123
if self.isServer then
123124
self:debug("Field work task stopped.")
124-
self.vehicle:stopFieldWorker()
125125
self.vehicle:cpBrakeToStop()
126126
end
127127
CpAITask.stop(self, wasJobStopped)

0 commit comments

Comments
 (0)