Skip to content

Commit

Permalink
Fixes hud bug
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Sep 12, 2023
1 parent 6aff6da commit 3ecbcc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gui/hud/CpSiloLoaderWorkerHudPage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function CpSiloLoaderWorkerHudPageElement:arePositionEqual(parameters, otherPara
end

function CpSiloLoaderWorkerHudPageElement:isStartingPointBtnDisabled(vehicle)
return AIUtil.hasChildVehicleWithSpecialization(vehicle, ConveyorBelt)
return AIUtil.hasChildVehicleWithSpecialization(vehicle, ConveyorBelt) or vehicle:getIsCpActive()
end

function CpSiloLoaderWorkerHudPageElement:getStartingPointBtnText(vehicle)
Expand Down

0 comments on commit 3ecbcc6

Please sign in to comment.