Warehouse v0.4.1alpha

Not working version.
fixed a few bugs.
Uncommented check for coordinate in CargoGroup.lua
etc.
This commit is contained in:
funkyfranky
2018-09-11 00:04:33 +02:00
parent 85505f3feb
commit 552718e303
2 changed files with 267 additions and 284 deletions

View File

@@ -661,12 +661,13 @@ do -- CARGO_GROUP
else
CargoCoordinate = Cargo.CargoObject:GetCoordinate()
end
-- if CargoCoordinate then
-- FF check if coordinate could be obtained. This was commented out for some (unknown) reason. But the check seems valid!
if CargoCoordinate then
Distance = Coordinate:Get2DDistance( CargoCoordinate )
-- else
-- return false
-- end
else
return false
end
self:F( { Distance = Distance, LoadRadius = self.LoadRadius } )
if Distance <= self.LoadRadius then