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:
@@ -9469,6 +9469,10 @@ function OPSGROUP:onafterLoading(From, Event, To)
|
|||||||
-- Calculate item amount.
|
-- Calculate item amount.
|
||||||
local amount=w/cargo.storage.cargoWeight
|
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.
|
-- Remove items from warehouse.
|
||||||
if type(cargo.storage.cargoType)=="number" then
|
if type(cargo.storage.cargoType)=="number" then
|
||||||
cargo.storage.storageFrom:RemoveLiquid(cargo.storage.cargoType, amount)
|
cargo.storage.storageFrom:RemoveLiquid(cargo.storage.cargoType, amount)
|
||||||
|
|||||||
Reference in New Issue
Block a user