export check and clear cache

remove useless CPPI check on client

change cache clear timer from 300 to 60 seconds
This commit is contained in:
shadowscion 2023-01-29 07:48:28 -06:00
parent 5e41f6742a
commit 0ecd684c6b
2 changed files with 5 additions and 3 deletions

View File

@ -53,7 +53,7 @@ end)
timer.Create("prop2trash", 60, 0, function()
local curtime = SysTime()
for crc, usedtime in pairs(garbage) do
if curtime - usedtime > 300 then
if curtime - usedtime > 60 then
if recycle[crc] and recycle[crc].meshes then
for uniqueID, meshdata in pairs(recycle[crc].meshes) do
if meshdata.basic then

View File

@ -388,8 +388,10 @@ net.Receive("prop2mesh_export", function()
end)
local function CanToolClient(ent)
if not CPPI then return true end
return IsValid(ent) and ent.CPPICanTool and ent.CPPICanTool(LocalPlayer(), "prop2mesh")
return true
--if not CPPI then return true end
--return IsValid( ent ) and ent.CPPIGetOwner and ent:CPPIGetOwner() == LocalPlayer()
--return IsValid(ent) and ent.CPPICanTool and ent:CPPICanTool(LocalPlayer(), "prop2mesh")
end
--[[