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

@@ -78,7 +78,7 @@ trace.f( self.ClassName )
trace.i( self.ClassName, { Cargo.ClassName, Cargo.CargoName, Cargo.CargoType, Cargo:IsStatusNone(), Cargo:IsStatusLoaded(), Cargo:IsStatusLoading(), Cargo:IsStatusUnLoaded() } )
if Cargo:IsStatusNone() then
if Cargo:IsStatusNone() or ( Cargo:IsStatusLoaded() and Client ~= Cargo:IsLoadedInClient() ) then
local MenuAdd = false
if Cargo:IsNear( Client, self.CurrentCargoZone ) then