mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update OpsGroup.lua
This commit is contained in:
parent
92b0ab3c8d
commit
45008c9d57
@ -9469,6 +9469,10 @@ function OPSGROUP:onafterLoading(From, Event, To)
|
||||
-- Calculate item amount.
|
||||
local amount=w/cargo.storage.cargoWeight
|
||||
|
||||
--TODO: Check the amount that the warehouse currently has!
|
||||
-- We dont want to remove more than what is actually there.
|
||||
-- Also needs a check if it is unlimited.
|
||||
|
||||
-- Remove items from warehouse.
|
||||
if type(cargo.storage.cargoType)=="number" then
|
||||
cargo.storage.storageFrom:RemoveLiquid(cargo.storage.cargoType, amount)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user