Optimized Cargo logic

This commit is contained in:
svenvandevelde
2016-02-21 23:29:44 +01:00
parent aadd529093
commit c22492f051
4 changed files with 23 additions and 8 deletions

View File

@@ -98,7 +98,7 @@ trace.f( self.ClassName )
trace.i( self.ClassName, { Cargo.ClassName, Cargo.CargoName, Cargo.CargoType, Cargo.CargoWeight } )
if Cargo:IsStatusLoaded() then
if Cargo:IsStatusLoaded() and Client == Cargo:IsLoadedInClient() then
if Client._Menus[Cargo.CargoType] == nil then
Client._Menus[Cargo.CargoType] = {}